Skip to content

Commit

Permalink
fix(FilePicker): Ensure height is always set to file picker value
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Nov 2, 2023
1 parent 8317e34 commit 7a1df28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/FilePicker/FilePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,13 @@ export default {
}
}
:deep(.file-picker) {
:deep(.dialog.file-picker) {
// Dialog is max. 900px wide so the best looking height seems to be 800px
height: min(80vh, 800px);
}
@media (max-width: 512px) {
:deep(.file-picker) {
:deep(.dialog.file-picker) {
// below 512px the modal is fullscreen so we use 100% height - margin of heading (4px + 12px) - height of heading (default-clickable-area)
height: calc(100% - 16px - var(--default-clickable-area));
}
Expand Down

0 comments on commit 7a1df28

Please sign in to comment.