Skip to content

Commit a666576

Browse files
committed
fix: os icon and label alignments
1 parent 9042397 commit a666576

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

static/css/v3/downloads_table_card.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
color: var(--color-text-secondary);
3939
}
4040

41+
.downloads-table-card__platform-wrapper {
42+
display: flex;
43+
align-items: center;
44+
justify-content: flex-start;
45+
}
46+
4147
.downloads-table-card__os-icon {
4248
display: inline-flex;
4349
align-items: center;

templates/v3/includes/_downloads_table_card.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
<tr class="downloads-table-card__tr">
2626
{% if forloop.first %}
2727
<td class="downloads-table-card__td downloads-table-card__td--platform" rowspan="{{ download_files|length }}">
28-
{% if 'Unix' in os %}
29-
<span class="downloads-table-card__os-icon" aria-hidden="true">{% include "includes/icon.html" with icon_name="linux" icon_size=16 icon_viewbox="0 0 16 16" %}</span>
30-
{% elif 'Windows' in os or 'Binary' in os %}
31-
<span class="downloads-table-card__os-icon" aria-hidden="true">{% include "includes/icon.html" with icon_name="windows" icon_size=16 icon_viewbox="0 0 16 16" %}</span>
32-
{% endif %}
33-
{{ os }}
28+
<div class="downloads-table-card__platform-wrapper">
29+
{% if 'Unix' in os %}
30+
<span class="downloads-table-card__os-icon" aria-hidden="true">{% include "includes/icon.html" with icon_name="linux" icon_size=16 icon_viewbox="0 0 16 16" %}</span>
31+
{% elif 'Windows' in os or 'Binary' in os %}
32+
<span class="downloads-table-card__os-icon" aria-hidden="true">{% include "includes/icon.html" with icon_name="windows" icon_size=16 icon_viewbox="0 0 16 16" %}</span>
33+
{% endif %}
34+
<span>{{ os }}</span>
35+
</div>
3436
</td>
3537
{% endif %}
3638
<td class="downloads-table-card__td downloads-table-card__td--file">

0 commit comments

Comments
 (0)