mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
fix: show Downloads instead of Stars on narrow screens
Below 960px the table hid the PyPI Downloads column but kept the default downloads sort, so the visible Stars column looked unsorted and the active sort header was not shown or tappable. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1174,7 +1174,7 @@ th[data-sort].sort-asc::after {
|
||||
}
|
||||
|
||||
.expand-commit,
|
||||
.expand-downloads {
|
||||
.expand-stars {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1732,12 +1732,12 @@ th[data-sort].sort-asc::after {
|
||||
}
|
||||
|
||||
.col-commit,
|
||||
.col-downloads {
|
||||
.col-stars {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.expand-commit,
|
||||
.expand-downloads {
|
||||
.expand-stars {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
@@ -1847,8 +1847,8 @@ th[data-sort].sort-asc::after {
|
||||
padding-right: 0.8rem;
|
||||
}
|
||||
|
||||
.col-stars {
|
||||
width: 5.4rem;
|
||||
.col-downloads {
|
||||
width: 7.5rem;
|
||||
}
|
||||
|
||||
.col-arrow {
|
||||
|
||||
@@ -197,10 +197,10 @@
|
||||
><time datetime="{{ entry.last_commit_at }}"
|
||||
>{{ entry.last_commit_at[:10] }}</time
|
||||
></span
|
||||
>{% endif %} {% if entry.downloads is not none %}<span
|
||||
class="expand-downloads"
|
||||
>{% endif %} {% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.downloads) }} downloads/month</span
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -257,10 +257,10 @@
|
||||
><time datetime="{{ entry.last_commit_at }}"
|
||||
>{{ entry.last_commit_at[:10] }}</time
|
||||
></span
|
||||
>{% endif %} {% if entry.downloads is not none %}<span
|
||||
class="expand-downloads"
|
||||
>{% endif %} {% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.downloads) }} downloads/month</span
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user