Make these sticky

This commit is contained in:
Jason Zimdars
2025-02-12 13:37:03 -06:00
parent ff8a2b56b3
commit e5e8f321df
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -69,10 +69,10 @@
}
.event__grid-column-title {
--z: 3;
background-color: var(--color-bg);
inset-block-start: 0;
padding-block: var(--grid-lines);
z-index: 3;
}
.event__timestamp {
+1 -1
View File
@@ -157,7 +157,7 @@
/* Position */
.position-relative { position: relative; }
.position-sticky { position: sticky; }
.position-sticky { position: sticky; inset: var(--inset, 0 auto auto auto); z-index: var(--z, 1); }
/* Fills */
.fill { background-color: var(--color-bg); }
+2 -2
View File
@@ -2,7 +2,7 @@
<% content_for :header do %>
<% if @bubble.creating? && @bubble.can_recover_abandoned_creation? %>
<div class="flex align-center gap-half fill-selected justify-center border-block margin-block-end"
<div class="position-sticky flex align-center gap-half fill-selected justify-center border-block margin-block-end"
style="--border-color: var(--color-selected-dark); --border-style: dashed; view-transition-name: draft-banner;">
You have an unsaved work. Would you like to continue where you left off?
<%= button_to bucket_bubble_recover_path(@bubble.bucket, @bubble), class: "btn txt-small btn--link", data: { turbo_action: "replace" } do %>
@@ -12,7 +12,7 @@
<% end %>
<% if @bubble.drafted? %>
<div class="flex align-center gap-half fill-selected justify-center border-block margin-block-end"
<div class="position-sticky flex align-center gap-half fill-selected justify-center border-block margin-block-end"
style="--border-color: var(--color-selected-dark); --border-style: dashed; view-transition-name: draft-banner;">
This is a draft, its only visible to you.
<%= render "bubbles/publish", bubble: @bubble %>