Skip to content

Commit 4edef95

Browse files
committed
VersionList::Row: Align creation date to the right side
1 parent f4bbf26 commit 4edef95

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/components/version-list/row.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
{{@version.num}}
99
</LinkTo>
1010

11-
<span local-class="date">{{date-format @version.created_at 'PPP'}}</span>
1211
{{#if @version.yanked}}
1312
<span local-class='yanked'>yanked</span>
1413
{{/if}}
1514
</div>
1615

16+
<span local-class="date">{{date-format @version.created_at 'PPP'}}</span>
17+
1718
{{#if this.isOwner}}
1819
<YankButton @version={{@version}} local-class="yank-button" />
1920
{{/if}}

app/components/version-list/row.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.row {
22
display: flex;
3-
justify-content: space-between;
4-
flex-wrap: wrap;
3+
align-items: center;
54
position: relative;
65
padding: 20px;
76
transition: background-color 300ms;
@@ -10,6 +9,10 @@
109
background-color: var(--grey200);
1110
transition: background-color 0ms;
1211
}
12+
13+
& >:first-child {
14+
flex-grow: 1;
15+
}
1316
}
1417

1518
.num-link {
@@ -37,4 +40,5 @@
3740

3841
.yank-button {
3942
position: relative;
43+
margin-left: 10px;
4044
}

0 commit comments

Comments
 (0)