Skip to content

Commit

Permalink
added media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-furyk committed Oct 15, 2024
1 parent dff02d2 commit e25076f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
22 changes: 11 additions & 11 deletions src/components/ActionBar/ActionBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ const ActionBar = ({
</Field>
</div>
)}
{filterMenuModal && (
<FilterMenuModal
applyChanges={filterMenuModal => applyChanges(formState.values, filterMenuModal)}
filterMenuName={filterMenuName}
initialValues={filterMenuModalInitialState}
restartFormTrigger={`${tab}`}
values={filterMenuModal.values}
>
{children}
</FilterMenuModal>
)}
</div>
{filterMenuModal && (
<FilterMenuModal
applyChanges={filterMenuModal => applyChanges(formState.values, filterMenuModal)}
filterMenuName={filterMenuName}
initialValues={filterMenuModalInitialState}
restartFormTrigger={`${tab}`}
values={filterMenuModal.values}
>
{children}
</FilterMenuModal>
)}
{(withRefreshButton || !isEmpty(actionButtons)) && (
<div className="action-bar__actions">
{actionButtons.map(
Expand Down
2 changes: 1 addition & 1 deletion src/components/Jobs/Jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const Jobs = ({ fetchAllJobRuns, fetchJobFunction, fetchJobs }) => {
</div>
{selectedTab && (
<div className="content">
<div className="content__action-bar-wrapper">
<div className="content__action-bar-wrapper content__action-bar-wrapper_wrapped">
<ContentMenu
activeTab={selectedTab}
onClick={handleTabChange}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ModelsPage/Models/ModelsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ModelsView = React.forwardRef(
<>
<div className="models" ref={modelsRef}>
<div className="table-container">
<div className="content__action-bar-wrapper">
<div className="content__action-bar-wrapper content__action-bar-wrapper_wrapped">
<ModelsPageTabs />
{/* TODO: remove from demo in 1.7 */}
<ArtifactsActionBar
Expand Down
11 changes: 11 additions & 0 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ body {
align-items: center;
padding: 4px 0 15px 0;

&.content__action-bar-wrapper_wrapped {
@media screen and (max-width: 1500px) {
flex-wrap: wrap;

.action-bar {
justify-content: space-between;
margin-top: 10px;
}
}
}

&_hidden {
display: none;
}
Expand Down

0 comments on commit e25076f

Please sign in to comment.