Skip to content

Commit 4ea3134

Browse files
vintaclaude
andcommitted
fix: move group tag into category cell and hide on mobile
- Relocate group tag from expand row to category column so it appears inline beside the category tag - Add margin between stacked tags with .col-cat .tag + .tag spacing rule - Remove fixed width from .col-cat; narrow .col-name from 35% to 30% to give category column room - Hide .tag-group on screens ≤900px and widen .col-name to 50% to reclaim space Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4077051 commit 4ea3134

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

website/static/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ a:hover { color: var(--accent-hover); text-decoration: underline; }
268268
}
269269

270270
.col-name {
271-
width: 35%;
271+
width: 30%;
272272
overflow-wrap: anywhere;
273273
}
274274

@@ -439,10 +439,13 @@ th[data-sort].sort-asc::after {
439439
}
440440

441441
.col-cat {
442-
width: 13%;
443442
white-space: nowrap;
444443
}
445444

445+
.col-cat .tag + .tag {
446+
margin-left: 0.35rem;
447+
}
448+
446449
/* === Last Commit Column === */
447450
.col-commit {
448451
width: 9rem;
@@ -528,6 +531,8 @@ th[data-sort].sort-asc::after {
528531
/* === Responsive === */
529532
@media (max-width: 900px) {
530533
.col-commit { display: none; }
534+
.tag-group { display: none; }
535+
.col-name { width: 50%; }
531536
}
532537

533538
@media (max-width: 640px) {

website/templates/index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,15 @@ <h2 class="sr-only">Results</h2>
119119
<button class="tag" data-type="cat" data-value="{{ entry.category }}">
120120
{{ entry.category }}
121121
</button>
122+
<button class="tag tag-group" data-type="group" data-value="{{ entry.group }}">
123+
{{ entry.group }}
124+
</button>
122125
</td>
123126
<td class="col-arrow"><span class="arrow">&rarr;</span></td>
124127
</tr>
125128
<tr class="expand-row" id="expand-{{ loop.index }}">
126129
<td></td>
127-
<td colspan="3">
130+
<td colspan="4">
128131
<div class="expand-content">
129132
{% if entry.description %}
130133
<div class="expand-desc">{{ entry.description | safe }}</div>
@@ -153,11 +156,6 @@ <h2 class="sr-only">Results</h2>
153156
</div>
154157
</div>
155158
</td>
156-
<td class="col-cat">
157-
<button class="tag" data-type="group" data-value="{{ entry.group }}">
158-
{{ entry.group }}
159-
</button>
160-
</td>
161159
<td></td>
162160
</tr>
163161
{% endfor %}

0 commit comments

Comments
 (0)