Skip to content

Commit

Permalink
fix: move last updated tag into dashboard actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe committed Sep 5, 2024
1 parent 5dafe3e commit 1840049
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/pages/view/TitleBar/TitleBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ const ViewTitleBar = ({
>
{displayName}
</span>
<ActionsBar />
<div className={classes.infoGroup}>
{<LastUpdatedTag id={id} />}
<ActionsBar />
</div>
</div>
{showDescription && (
<Description description={displayDescription} />
)}
{<LastUpdatedTag id={id} />}
</div>
)
}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/view/TitleBar/styles/ActionsBar.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.actions {
display: flex;
align-items: center;
gap: var(--spacers-dp8);
padding: 0 var(--spacers-dp8);
gap: 4px;
}

.strip {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/view/TitleBar/styles/LastUpdatedTag.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.lastUpdatedTag {
margin-top: var(--spacers-dp8);
margin-top: 0;
}
15 changes: 12 additions & 3 deletions src/pages/view/TitleBar/styles/TitleBar.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.container {
/* margin-top: var(--spacers-dp12); */
background: var(--colors-white);
border-bottom: 1px solid var(--colors-grey300);
padding: var(--spacers-dp12) var(--spacers-dp16) var(--spacers-dp8);
border-bottom: 1px solid var(--colors-grey400);
padding: var(--spacers-dp8) var(--spacers-dp8) var(--spacers-dp8)
var(--spacers-dp16);
position: sticky;
top: 0;
z-index: 10;
Expand All @@ -17,8 +18,16 @@

.title {
position: relative;
font-size: 18px;
font-size: 17px;
font-weight: 500;
color: var(--colors-grey900);
user-select: text;
}

.infoGroup {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 4px;
flex-wrap: wrap-reverse;
}

0 comments on commit 1840049

Please sign in to comment.