Skip to content

Commit

Permalink
Improve command palette rendering on smaller viewports (#53661)
Browse files Browse the repository at this point in the history
* Tweaks for mobile

* Use proper modal border radius

* Ensure width does not clash with viewport edge

* Adjust top position, break-small
  • Loading branch information
richtabor authored Aug 15, 2023
1 parent b36ac1b commit c167bb6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/commands/src/components/style.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
// dirty hack to clean up modal
.commands-command-menu {
width: 100%;
border-radius: $grid-unit-05;
width: calc(100% - #{$grid-unit-40});
margin: auto;
max-width: 420px;
position: relative;
top: 15%;
top: calc(15% + #{$header-height});

@include break-small() {
top: 15%;
}

.components-modal__content {
margin: 0;
Expand Down

0 comments on commit c167bb6

Please sign in to comment.