Skip to content

Commit

Permalink
[Page Headder]Fix reponsiveness for dashboards & visualization app he…
Browse files Browse the repository at this point in the history
…aders (#8329)

Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu authored Sep 26, 2024
1 parent ee9785c commit 8db6a16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default function QueryEditorTopRow(props: QueryEditorTopRowProps) {
: datePicker}
{renderQueryEditor()}
<EuiFlexItem>
<EuiFlexGroup responsive={false} gutterSize="none" direction="column">
<EuiFlexGroup responsive={false} gutterSize="s" direction="column">
<EuiFlexItem>{renderSharingMetaFields()}</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
Expand Down
8 changes: 5 additions & 3 deletions src/plugins/data/public/ui/query_string_input/_query_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@
*/

.osdQueryBar__wrap {
max-width: 100%;
z-index: $euiZContentMenu;

.euiToolTipAnchor {
height: 100%;
}

&.euiFormControlLayout--group.euiFormControlLayout--compressed {
overflow: initial;
}

@include euiBreakpoint("m", "l", "xl", "xxl", "xxxl") {
max-width: 100%;
z-index: $euiZContentMenu;
}
}

// Uses the append style, but no bordering
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default function QueryBarTopRow(props: QueryBarTopRowProps) {

return (
<NoDataPopover storage={storage} showNoDataPopover={props.indicateNoData}>
<EuiFlexGroup responsive={false} gutterSize="s" alignItems="flexStart">
<EuiFlexGroup responsive={false} gutterSize="s" justifyContent="flexStart">
{renderDatePicker()}
<EuiFlexItem grow={false}>{button}</EuiFlexItem>
</EuiFlexGroup>
Expand Down Expand Up @@ -306,7 +306,7 @@ export default function QueryBarTopRow(props: QueryBarTopRowProps) {
});

return (
<EuiFlexItem className={wrapperClasses}>
<EuiFlexItem className={wrapperClasses} grow={false}>
<EuiSuperDatePicker
start={props.dateRangeFrom}
end={props.dateRangeTo}
Expand Down

0 comments on commit 8db6a16

Please sign in to comment.