Skip to content

Commit

Permalink
Merge pull request #4 from ryankeairns/feature/removePanelsFromUrl
Browse files Browse the repository at this point in the history
Add responsive styles
  • Loading branch information
ThomThomson authored Jan 28, 2021
2 parents 9bdbaa2 + 09de507 commit 55cda0e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/plugins/dashboard/public/application/_dashboard_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,17 @@
.dshUnsavedListingItem__actions {
margin-left: $euiSizeL + $euiSizeXS;
}

@include euiBreakpoint('xs', 's') {
.dshUnsavedListingItem {
margin-top: $euiSize;
}

.dshUnsavedListingItem__heading {
margin-bottom: $euiSizeXS;
}

.dshUnsavedListingItem__actions {
flex-direction: column;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ const DashboardUnsavedItem = ({
const title = dashboard?.title ?? getNewDashboardTitle();
return (
<div className="dshUnsavedListingItem">
<EuiFlexGroup alignItems="center" gutterSize="none">
<EuiFlexGroup
alignItems="center"
gutterSize="none"
className="dshUnsavedListingItem__heading"
responsive={false}
>
<EuiFlexItem grow={false}>
<EuiIcon color="text" className="dshUnsavedListingItem__icon" type="dashboardApp" />
</EuiFlexItem>
Expand All @@ -49,9 +54,10 @@ const DashboardUnsavedItem = ({
</EuiFlexItem>
</EuiFlexGroup>
<EuiFlexGroup
gutterSize="none"
alignItems="flexStart"
gutterSize="none"
className="dshUnsavedListingItem__actions"
responsive={false}
>
<EuiFlexItem grow={false}>
<EuiButtonEmpty
Expand All @@ -67,6 +73,7 @@ const DashboardUnsavedItem = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonEmpty
flush="left"
size="s"
color="danger"
onClick={onDiscardClick}
Expand Down

0 comments on commit 55cda0e

Please sign in to comment.