Skip to content

Commit

Permalink
add additional cases
Browse files Browse the repository at this point in the history
Signed-off-by: Viraj Sanghvi <[email protected]>
  • Loading branch information
virajsanghvi committed Sep 23, 2024
1 parent 1a1244c commit 313df10
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
EuiSpacer,
EuiHideFor,
EuiFlyoutProps,
EuiShowFor,
} from '@elastic/eui';
import { i18n } from '@osd/i18n';
import React, { useMemo } from 'react';
Expand Down Expand Up @@ -368,7 +369,7 @@ export function CollapsibleNavGroupEnabled({
return (
<>
<EuiHideFor sizes={['xs', 's', 'm']}>{rendeLeftNav()}</EuiHideFor>
<EuiHideFor sizes={['xl', 'l']}>
<EuiShowFor sizes={['xs', 's', 'm']}>
{isNavOpen
? rendeLeftNav({
type: 'overlay',
Expand All @@ -378,7 +379,7 @@ export function CollapsibleNavGroupEnabled({
ownFocus: true,
})
: null}
</EuiHideFor>
</EuiShowFor>
</>
);
}
2 changes: 1 addition & 1 deletion src/plugins/data/public/ui/query_editor/_query_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
}

// IE specific fix for the datepicker to not collapse
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
.osdQueryEditor__datePickerWrapper {
max-width: 40vw;
flex-grow: 0 !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

// IE specific fix for the datepicker to not collapse
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxl") {
.osdQueryBar__datePickerWrapper {
max-width: 40vw;
flex-grow: 0 !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
max-width: calc(75% - #{$euiSizeM * 2});
}

@include euiBreakpoint("xl") {
@include euiBreakpoint("xl", "xxl", "xxxl") {
max-width: calc(50% - #{$euiSizeM * 2});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@

.osdOverviewApps__item {
.osdOverviewApps__group--primary & {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxl") {
max-width: calc(50% - #{$euiSizeM * 2});
}
}

.osdOverviewApps__group--secondary & {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
max-width: calc(25% - #{$euiSizeM * 2});
}
}
Expand All @@ -86,7 +86,7 @@
}

.osdOverviewMore__item {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
max-width: calc(33.3333% - #{$euiSizeM * 2});
}
}
Expand All @@ -101,13 +101,13 @@

.osdOverviewSupplements--noNews .osdOverviewMore {
h2 {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
text-align: center;
}
}

.osdOverviewMore__content {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
justify-content: center;
}
}
Expand All @@ -129,7 +129,7 @@
}

.osdOverviewDataManage__item:not(:only-child) {
@include euiBreakpoint("m", "l", "xl") {
@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
flex: 0 0 calc(50% - #{$euiSizeM * 2});
}
}
2 changes: 1 addition & 1 deletion src/plugins/vis_default_editor/public/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
width: 100% !important;
}

@include euiBreakpoint("l", "xl") {
@include euiBreakpoint("l", "xl", "xxl", "xxxl") {
max-width: 75%;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_default_editor/public/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
flex-grow: 0;
}

@include euiBreakpoint("l", "xl") {
@include euiBreakpoint("l", "xl", "xxl", "xxxl") {
@include flex-parent(1, 1, 1px);
@include euiScrollBar;

Expand Down

0 comments on commit 313df10

Please sign in to comment.