Skip to content

Commit 749a4bf

Browse files
committed
fix: right align plus and delete icons in tables to avoid horizontal layout shifts
1 parent 3f96b17 commit 749a4bf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/ui/packagepage/templates.templ

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ templ CompareTable(pkgs []packages.PackagePopularity, query string, offset int,
8383
<tr>
8484
<th scope="col">Package</th>
8585
<th scope="col">Popularity</th>
86-
<th scope="col" class="d-none d-lg-table-cell text-center">Compare</th>
86+
<th scope="col" class="d-none d-lg-table-cell text-end">Compare</th>
8787
</tr>
8888
</thead>
8989
<tbody>
@@ -92,10 +92,10 @@ templ CompareTable(pkgs []packages.PackagePopularity, query string, offset int,
9292
<td class="text-nowrap align-middle">
9393
<a href={ templ.SafeURL("/packages/" + pkg.Name) }>{ pkg.Name }</a>
9494
</td>
95-
<td class="w-75 align-middle">
95+
<td class="w-75">
9696
@components.PopularityBar(pkg.Popularity)
9797
</td>
98-
<td class="align-middle text-center">
98+
<td class="align-middle text-end">
9999
<a
100100
class="text-danger"
101101
href={ toggleURL(query, offset, limit, compare, pkg.Name) }
@@ -129,7 +129,7 @@ templ PackageTable(pkgs []packages.PackagePopularity, query string, offset int,
129129
<td class="w-75 align-middle">
130130
@components.PopularityBar(pkg.Popularity)
131131
</td>
132-
<td class="align-middle text-center">
132+
<td class="align-middle text-end">
133133
if isSelected(compare, pkg.Name) {
134134
<a
135135
class="text-danger"

0 commit comments

Comments
 (0)