Skip to content

Commit

Permalink
Fix modals when space is open in sidebar. NB: Unless we completely re…
Browse files Browse the repository at this point in the history
…do the modal system, we can't have them above the menu while
  • Loading branch information
DanielJackson-Oslo committed Mar 14, 2024
1 parent 84543e6 commit 063332f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
@apply bg-gray-700 bg-opacity-75 transition-opacity;
}

.space-open-in-sidebar .modal-background {
@apply md:left-1/2 md:px-2;
@apply md:top-desktop-menu-height;
@apply bottom-24 md:bottom-0;
}

.modal-close-button {
@apply text-left text-sm hover:underline;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/spaces/_back_to_search_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="hidden md:block h-0 w-fit sticky top-2 inset-x-auto mx-auto md:right-2 md:mr-0 z-100">
<div class="hidden md:block h-0 w-fit sticky top-2 inset-x-auto mx-auto md:right-2 md:mr-0 z-10">
<%= link_to spaces_path,
data: {
"turbo-frame": "spaces-open-here", # This updates the spaces-open-here frame
Expand Down

0 comments on commit 063332f

Please sign in to comment.