Skip to content

Commit

Permalink
Hide site hub when resizing frame upwards to avoid overlap (#52180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored Jul 12, 2023
1 parent b3a8e55 commit 04b3254
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/edit-site/src/components/resizable-frame/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
.edit-site-resizable-frame__inner {
position: relative;

&.edit-site-layout__resizable-frame-oversized {
@at-root {
body:has(&) {
.edit-site-site-hub {
.edit-site-site-hub__site-title,
.edit-site-site-hub_toggle-command-center {
opacity: 0 !important;
}

.edit-site-site-hub__view-mode-toggle-container {
background-color: transparent;
}
}
}
}
}

&.is-resizing {
@at-root {
body:has(&) {
Expand Down
5 changes: 5 additions & 0 deletions packages/edit-site/src/components/site-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
gap: 0;
}

.edit-site-site-hub__site-title,
.edit-site-site-hub_toggle-command-center {
transition: opacity ease 0.1s;
}

.edit-site-site-hub__site-view-link {
flex-grow: 0;
@include break-mobile() {
Expand Down

0 comments on commit 04b3254

Please sign in to comment.