Skip to content

Refactor StarButton layout and improve alignment in DandisetMain view #2282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion web/src/components/StarButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div class="star-container">
<v-btn
variant="plain"
icon
Expand Down Expand Up @@ -43,3 +43,12 @@ async function toggleStar() {
}
}
</script>

<style scoped>
.star-container {
display: flex;
align-items: center;
justify-content: flex-end;
margin-left: auto;
}
</style>
12 changes: 7 additions & 5 deletions web/src/views/DandisetLandingView/DandisetMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
>
<v-row class="mx-2 my-2 mb-0">
<v-col
class="d-flex align-center"
class="d-flex align-center justify-space-between"
>
<h1 :class="`font-weight-light ${isXsDisplay ? 'text-h6' : ''}`">
<ShareDialog />
{{ meta.name }}
</h1>
<div class="title-container d-flex align-center">
<h1 :class="`font-weight-light ${isXsDisplay ? 'text-h6' : ''}`">
<ShareDialog />
{{ meta.name }}
</h1>
</div>
<StarButton
:identifier="currentDandiset.dandiset.identifier"
:initial-star-count="currentDandiset.dandiset.star_count"
Expand Down