diff --git a/app/assets/stylesheets/trays.css b/app/assets/stylesheets/trays.css index 24399ffc4..ab0872b56 100644 --- a/app/assets/stylesheets/trays.css +++ b/app/assets/stylesheets/trays.css @@ -59,6 +59,10 @@ &:nth-child(4) { --tray-item-index: 4; } &:nth-child(5) { --tray-item-index: 5; } &:nth-child(6) { --tray-item-index: 6; } + &:nth-child(7) { --tray-item-index: 7; } + &:nth-child(8) { --tray-item-index: 8; } + &:nth-child(9) { --tray-item-index: 9; } + &:nth-child(10) { --tray-item-index: 10; } .tray[open] & { --tray-item-y: calc(-100% * var(--tray-item-index) + var(--tray-item-height) - var(--footer-height)); @@ -202,16 +206,11 @@ /* ------------------------------------------------------------------------ */ .tray--pins { - /* inset: auto auto var(--block-space-half) var(--inline-space); */ inset-inline: var(--inline-space) auto; .tray__item { --tray-item-z: calc(10 - var(--tray-item-index)); - &:nth-child(7) { --tray-item-index: 7; } - &:nth-child(8) { --tray-item-index: 8; } - &:nth-child(9) { --tray-item-index: 9; } - &:nth-child(10) { --tray-item-index: 10; } &:nth-child(1n + 11) { display: none; } } @@ -270,7 +269,6 @@ /* ------------------------------------------------------------------------ */ .tray--notifications { - /* inset: auto var(--inline-space) var(--block-space-half) auto; */ inset-inline: auto var(--inline-space); .tray__item:nth-child(1n + 7) { diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ba86f92e4..0e04cbca9 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -48,9 +48,9 @@ <% if Current.user && !@hide_footer_frames %>
<% end %> diff --git a/app/views/my/pins/_tray.html.erb b/app/views/my/pins/_tray.html.erb index 297dd12c8..b05e65239 100644 --- a/app/views/my/pins/_tray.html.erb +++ b/app/views/my/pins/_tray.html.erb @@ -1,13 +1,16 @@ <%= turbo_stream_from Current.user, :pins_tray %> -<%= tag.dialog id: "pin-tray", class: "tray tray--pins", - data: { controller: "dialog", turbo_permanent: true, dialog_modal_value: false, dialog_target: "dialog", action: "keydown.esc->dialog#close:stop click@document->dialog#closeOnClickOutside" } do %> - <%= turbo_frame_tag "pins", src: my_pins_path %> +