Skip to content

Commit dfeefcd

Browse files
committed
cr
1 parent b5a23e8 commit dfeefcd

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

x-pack/platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/formula/editor/formula_editor.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,7 @@ export function FormulaEditor({
921921
{warnings.map(({ message, severity }, index) => (
922922
<div
923923
key={index}
924-
className="lnsFormula__warningText"
925-
css={sharedEditorStyles.warningText(euiThemeContext)}
924+
css={index !== 0 && sharedEditorStyles.warningText(euiThemeContext)}
926925
>
927926
<EuiText
928927
size="s"
@@ -1014,11 +1013,9 @@ const sharedEditorStyles = {
10141013
pointer-events: none;
10151014
`,
10161015
warningText: ({ euiTheme }: UseEuiTheme) => css`
1017-
+ .lnsFormula__warningText {
1018-
margin-top: ${euiTheme.size.s};
1019-
border-top: ${euiTheme.border.thin};
1020-
padding-top: ${euiTheme.size.s};
1021-
}
1016+
margin-top: ${euiTheme.size.s};
1017+
border-top: ${euiTheme.border.thin};
1018+
padding-top: ${euiTheme.size.s};
10221019
`,
10231020
editorHelpLink: ({ euiTheme }: UseEuiTheme) => css`
10241021
align-items: center;

x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/frame_layout.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,12 @@ export function FrameLayout(props: FrameLayoutProps) {
9393
aria-labelledby="dataPanelId"
9494
css={[
9595
sidebarStyles(euiThemeContext),
96-
css`
97-
${isFullscreen &&
98-
`
99-
// Hide the datapanel in fullscreen mode. Using display: none does trigger
100-
// a rerender when the container becomes visible again, maybe pushing offscreen is better
101-
display: none;`}
102-
`,
96+
isFullscreen &&
97+
css`
98+
// Hide the datapanel in fullscreen mode. Using display: none does trigger
99+
// a rerender when the container becomes visible again, maybe pushing offscreen is better
100+
display: none;
101+
`,
103102
]}
104103
>
105104
<EuiScreenReaderOnly>

0 commit comments

Comments
 (0)