Skip to content

Commit d5febb2

Browse files
committed
fix: reserve 1px below last download for press translation
The shadcn button translates 1px down on :active. With overflow-x-auto on the downloads strip, the last button's press creates an unwanted scrollbar (CSS forces overflow-y from visible to auto). last:mb-px on the download wrapper gives it room to breathe.
1 parent cab1bdc commit d5febb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/projects/[project]/version/[version]/Build.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
{#if build.downloads && build.downloads.length > 0}
8989
<div class="flex flex-wrap gap-2 overflow-x-auto">
9090
{#each build.downloads as d (d.name)}
91-
<div class="flex items-center gap-1">
91+
<div class="flex items-center gap-1 last:mb-px">
9292
<Button href={d.url} rel="noopener noreferrer" title={d.name} size="sm" variant="outline">
9393
<span class="iconify lucide--download"></span>
9494
<span class="font-mono">{d.name}</span>

0 commit comments

Comments
 (0)