Skip to content

Commit 90ade67

Browse files
authored
Merge pull request #2282 from dandi/fix-star-layout
Refactor StarButton layout and improve alignment in DandisetMain view
2 parents bb31790 + 7c4136c commit 90ade67

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

web/src/components/StarButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div>
2+
<div class="d-flex align-center justify-end ml-auto">
33
<v-btn
44
variant="plain"
55
icon

web/src/views/DandisetLandingView/DandisetMain.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
>
88
<v-row class="mx-2 my-2 mb-0">
99
<v-col
10-
class="d-flex align-center"
10+
class="d-flex align-start justify-space-between"
1111
>
12-
<h1 :class="`font-weight-light ${isXsDisplay ? 'text-h6' : ''}`">
13-
<ShareDialog />
14-
{{ meta.name }}
15-
</h1>
12+
<div class="title-container d-flex align-center">
13+
<h1 :class="`font-weight-light ${isXsDisplay ? 'text-h6' : ''}`">
14+
<ShareDialog />
15+
{{ meta.name }}
16+
</h1>
17+
</div>
1618
<StarButton
1719
:identifier="currentDandiset.dandiset.identifier"
1820
:initial-star-count="currentDandiset.dandiset.star_count"

0 commit comments

Comments
 (0)