Skip to content

Commit

Permalink
Fix CSS Scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoituron committed Jan 10, 2025
1 parent 6d90b87 commit dbae9c1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Core/Components/Dialog/FluentDialogBody.razor.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
fluent-dialog[position][fuib] fluent-dialog-body[fuib] {
/*
These styles are identical to fluent web components slots.
But we need to duplicated because the "action" and "footer" slots are a single `div` containing the buttons.
*/

/* Desktop and Mobile */
fluent-dialog[fuib] fluent-dialog-body[fuib] {
grid-template-rows: auto 1fr auto;
height: 100%;
}

/* Desktop and Mobile */
fluent-dialog-body[fuib] > div[slot="action"] {
display: flex;
gap: var(--spacingVerticalS);
flex-direction: column;
}

fluent-drawer[fuib] fluent-drawer-body[fuib] {
overflow-y: auto;
}

/* Desktop */
@container (min-width: 480px) {
fluent-dialog-body[fuib] > div[slot="action"] {
Expand Down

0 comments on commit dbae9c1

Please sign in to comment.