Skip to content

Commit 7b3ba59

Browse files
m1rmpierres
authored andcommitted
fix: right align plus and delete icons in tables to avoid horizontal layout shifts
address review
1 parent 3f96b17 commit 7b3ba59

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>
@@ -95,7 +95,7 @@ templ CompareTable(pkgs []packages.PackagePopularity, query string, offset int,
9595
<td class="w-75 align-middle">
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) }
@@ -117,7 +117,7 @@ templ PackageTable(pkgs []packages.PackagePopularity, query string, offset int,
117117
<tr>
118118
<th scope="col">Package</th>
119119
<th scope="col">Popularity</th>
120-
<th scope="col" class="d-none d-lg-table-cell text-center">Compare</th>
120+
<th scope="col" class="d-none d-lg-table-cell text-end">Compare</th>
121121
</tr>
122122
</thead>
123123
<tbody>
@@ -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)