Skip to content

Commit

Permalink
fix(mobile): maximum width for modal content container
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Dec 19, 2022
1 parent ef06aed commit 38e58b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/frontend/components/command_palette.css
Expand Up @@ -108,7 +108,8 @@ html.is-ios {

.cp__palette-main {
margin-bottom: 0;
--palettle-container-height: calc(98vh - 8rem - var(--ls-native-kb-height));
min-height: var(--palettle-input-height);
--palettle-container-height: calc(98vh - 6rem - var(--ls-native-kb-height));
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/main/frontend/ui.css
Expand Up @@ -113,7 +113,6 @@

@screen sm {
overflow-y: overlay;
min-width: 720px;
max-height: 85vh;
padding: 2rem;
width: auto;
Expand Down Expand Up @@ -232,11 +231,16 @@ html.is-mobile {
.panel-content {
padding-bottom: 0;
}

.ls-search {
padding-bottom: 0;
}
}
}

.ui__modal-panel .panel-content {
width: calc(98vw - 2rem);
max-width: var(--ls-main-content-max-width);
padding-top: 24px;
}
}
Expand Down

0 comments on commit 38e58b7

Please sign in to comment.