Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Fix padding issue with new icon in top bar, fix bug where Enter bypasses empty name restriction, adjust modal button styling, allow community posts to be bookmarked
  • Loading branch information
kommunarr committed Dec 4, 2024
1 parent 2941e15 commit 5ddfbcc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
max-inline-size: 600px;
margin-inline: auto;
}

.actions-container {
justify-content: center;
column-gap: 10px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export default defineComponent({
},

save: function () {
if (this.name === '') {
return
}

const pageBookmark = {
route: this.$router.currentRoute.fullPath,
name: this.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<p>{{ duplicateNameMessage }}</p>
</ft-flex-box>
</div>
<div class="actions-container">
<ft-flex-box>
<div>
<ft-flex-box class="actions-container">
<ft-button
v-if="!isBookmarkBeingCreated"
:label="$t('Page Bookmark.Remove Bookmark')"
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/top-nav/top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default defineComponent({
'Channel',
'Watch',
'Hashtag',
'Post',
'Settings' // for linkable settings sections
],
lastSuggestionQuery: ''
Expand Down
13 changes: 9 additions & 4 deletions src/renderer/components/top-nav/top-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@media only screen and (width >= 1162px) {
display: grid;
grid-template-columns: 1fr 720px 0.5fr 0.5fr;
grid-template-columns: 1fr 440px 0.5fr 0.5fr;
}

@include top-nav-is-colored {
Expand Down Expand Up @@ -124,9 +124,14 @@
}
}

.pageBookmarkIcon.favorite {
@include top-nav-is-colored {
color: var(--accent-color);
.pageBookmarkIcon {
inline-size: fit-content;
padding: 10px;

&.favorite {
@include top-nav-is-colored {
color: var(--accent-color);
}
}
}

Expand Down

0 comments on commit 5ddfbcc

Please sign in to comment.