Skip to content

Commit c10d98d

Browse files
authored
Merge pull request #361 from SwissDataScienceCenter/fix/frontend-teams-save-bar-nav-offset
fix(teams): stick the save bar below the nav's border
2 parents 60107b4 + ac08b91 commit c10d98d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • components/frontend/src/routes/(app)/my/hackathon/[id]/teams/manage

‎components/frontend/src/routes/(app)/my/hackathon/[id]/teams/manage/+page.svelte‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@
843843
<h2 class="m-0 text-title text-ink">Manage Teams</h2>
844844
</div>
845845

846-
<!-- Save lives here, always, and sticks below the nav bar (`top-14`, the
847-
same offset the sidebar uses) so it stays in reach however far down
846+
<!-- Save lives here, always, and sticks below the nav bar (its `h-14` row
847+
plus its 1px bottom border) so it stays in reach however far down
848848
the projects the organizer has scrolled. Quiet while everything is
849849
saved; warning-colored as soon as anything is not — unsaved is a
850850
state, so warning rather than accent, and the same color marks what
@@ -854,7 +854,10 @@
854854
wrapper: what scrolls underneath stays hidden, the tint reads the same
855855
as on the unsaved cards, and the 2px above it keeps it off the nav bar
856856
without a see-through slit. -->
857-
<div bind:offsetHeight={saveBarHeight} class="sticky top-14 z-10 bg-canvas pt-0.5">
857+
<div
858+
bind:offsetHeight={saveBarHeight}
859+
class="sticky top-[calc(3.5rem+1px)] z-10 bg-canvas pt-0.5"
860+
>
858861
<div
859862
class="flex flex-wrap items-center gap-3 rounded-card border px-3 py-2
860863
text-xs {changes.total > 0
@@ -1304,7 +1307,7 @@
13041307
browsers draw and would sit beside ours. -->
13051308
<div
13061309
class="sticky z-10 -my-2 flex flex-wrap items-center gap-1.5 bg-canvas py-2"
1307-
style:top="calc(3.5rem + {saveBarHeight}px)"
1310+
style:top="calc(3.5rem + 1px + {saveBarHeight}px)"
13081311
>
13091312
<div class="relative w-56">
13101313
<Search

0 commit comments

Comments
 (0)