Skip to content

Commit

Permalink
Limit width on flyout
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Jul 17, 2023
1 parent 6a90379 commit a2f4d21
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
@import '../mixins';

.navEmbeddableLinkEditor {
@include euiFlyout;
.navEmbeddablePanelEditor {
max-inline-size: $euiSizeXXL * 18; // 40px * 18 = 720px

&.in {
animation: euiFlyoutOpenAnimation $euiAnimSpeedNormal $euiAnimSlightResistance;
}

&.out {
animation: euiFlyoutCloseAnimation $euiAnimSpeedNormal $euiAnimSlightResistance;
}
.navEmbeddableLinkEditor {
@include euiFlyout;
max-inline-size: $euiSizeXXL * 18;

.linkEditorBackButton {
height: auto;
}
}
&.in {
animation: euiFlyoutOpenAnimation $euiAnimSpeedNormal $euiAnimSlightResistance;
}

.secondaryFlyout {
background-color: none;
&.out {
animation: euiFlyoutCloseAnimation $euiAnimSpeedNormal $euiAnimSlightResistance;
}

.linkEditorBackButton {
height: auto;
}
}
}

.navEmbeddableDashboardItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export async function openEditorFlyout(
ownFocus: true,
outsideClickCloses: false,
onClose: onCancel,
className: 'navEmbeddablePanelEditor',
}
);

Expand Down

0 comments on commit a2f4d21

Please sign in to comment.