Adjust position of settings buttons
This commit is contained in:
@@ -19,10 +19,9 @@
|
||||
padding: var(--gap);
|
||||
}
|
||||
|
||||
.bucket__edit-btn {
|
||||
.bucket__button {
|
||||
position: absolute;
|
||||
inset-block-end: 0;
|
||||
inset-inline-end: 0;
|
||||
inset: calc((var(--btn-size) * -1) - 2cqi) 1cqi auto auto;
|
||||
}
|
||||
|
||||
.bucket__windshield {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% cache bucket do %>
|
||||
<li class="bucket flex flex-column txt-align-center max-width position-relative">
|
||||
<li class="bucket flex flex-column txt-align-center max-width">
|
||||
<%= link_to bubbles_path(bucket_ids: [ bucket ]), class: "border border-radius margin-block-end-half windshield__container flex justify-center align-center position-relative" do %>
|
||||
<div class="windshield bucket__windshield flex flex-wrap gap justify-center align-end" style="view-transition-name: windshield_<%= bucket.id %>">
|
||||
<% bucket.bubbles.ordered_by_activity.limit(10).each do |bubble| %>
|
||||
@@ -10,12 +10,12 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="flex align-center justify-center flex-column flex-wrap center gap-half">
|
||||
<div class="flex align-center justify-center flex-column flex-wrap center gap-half position-relative full-width">
|
||||
<%= link_to bubbles_path(bucket_ids: [ bucket ]), class: "txt-ink flex flex-column" do %>
|
||||
<strong class="txt-x-large"><%= bucket.name %></strong>
|
||||
<% end %>
|
||||
|
||||
<%= link_to edit_bucket_path(bucket), class: "btn txt-small" do %>
|
||||
<%= link_to edit_bucket_path(bucket), class: "btn txt-small bucket__button" do %>
|
||||
<%= image_tag "settings.svg", aria: { hidden: true }, size: 24 %>
|
||||
<span class="for-screen-reader">Settings for <%= bucket.name %></span>
|
||||
<% end %>
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="flex align-center justify-center flex-column flex-wrap center gap-half">
|
||||
<div class="flex align-center justify-center flex-column flex-wrap center gap-half position-relative full-width">
|
||||
<%= link_to bubbles_path(**filter.to_params), class: "txt-ink" do %>
|
||||
<strong class="txt-large"><%= image_tag "filter.svg", aria: { hidden: true }, size: 30, class: "flex-inline", style: "vertical-align: bottom" %> <%= filter.summary %></strong>
|
||||
<% end %>
|
||||
<%= button_to filter_path(filter), method: :delete, class: "btn txt-small btn--negative", data: { turbo_confirm: "Are you sure you want to delete this filter?" } do %>
|
||||
<%= button_to filter_path(filter), method: :delete, class: "btn txt-small btn--negative bucket__button", data: { turbo_confirm: "Are you sure you want to delete this filter?" } do %>
|
||||
<%= image_tag "minus.svg", aria: { hidden: true }, size: 24 %>
|
||||
<span class="for-screen-reader">Delete</span>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user