Skip to content

Commit

Permalink
Move flyout width styling to scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Sep 12, 2022
1 parent 740e467 commit 6431813
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/src/experiments/list/search/SearchExperimentsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import { SegmenterContextProvider } from "providers/segmenters/context";

import SearchExperimentsFilters from "./SearchExperimentsFilters";

import "./SearchExperimentsPanel.scss";

const SearchExperimentsPanel = ({ onChange, onClose, projectId }) => {
return (
<SegmenterContextProvider projectId={projectId}>
<EuiFlyout
id="experiments-search-panel"
side="left"
onClose={onClose}
size="313px"
maxWidth={true}
hideCloseButton={true}
paddingSize="m"
Expand Down
6 changes: 6 additions & 0 deletions ui/src/experiments/list/search/SearchExperimentsPanel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Required for setting a specific flyout width that is smaller than the default EUI flyout width (medium); overwrites
// the min-width that corresponds to the default EUI flyout width
.euiFlyout--medium {
width: 313px;
min-width: unset;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import schema from "settings/components/form/validation/schema";
import { PlaygroundRadioGroup } from "settings/components/playground_flyout/PlaygroundRadioGroup";
import { getValidationOptions } from "settings/components/playground_flyout/typeOptions";

import "./PlaygroundFlyout.scss";

var JSONbig = require("json-bigint");

const PlaygroundFlyout = ({ onClose }) => {
Expand Down Expand Up @@ -75,7 +77,6 @@ const PlaygroundFlyout = ({ onClose }) => {
return (
<EuiFlyout
onClose={onClose}
size="313px"
maxWidth={true}
paddingSize="m"
type="push"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Required for setting a specific flyout width that is smaller than the default EUI flyout width (medium); overwrites
// the min-width that corresponds to the default EUI flyout width
.euiFlyout--medium {
width: 313px;
min-width: unset;
}

0 comments on commit 6431813

Please sign in to comment.