Fixed minor issues (#291)

* Fixed xss sanitizer config for checkboxes

* Fixed typo in version navigation tree href

* Fixed navigation tabs' margins with pure css

* Prettier

For some weird reason my prettier config seems to be different

Co-authored-by: Redblueflame <contact@redblueflame.com>
This commit is contained in:
apersomany 2021-08-23 19:39:03 +07:00 committed by GitHub
parent 8798340d48
commit 5ccd40f530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 12 deletions

View File

@ -350,9 +350,6 @@
margin-bottom: 0.5rem;
@extend %transparent-clickable;
&.last {
margin-bottom: 0;
}
svg {
color: var(--color-icon);
margin-right: 5px;
@ -367,6 +364,10 @@
}
}
}
.tab:last-child {
margin-bottom: 0;
}
}
}

View File

@ -3,18 +3,18 @@
<div class="page-contents">
<div class="sidebar-l">
<div v-if="$auth.user != null" class="card page-nav">
<nuxt-link :to="'/dashboard/projects'" class="tab last">
<nuxt-link :to="'/dashboard/projects'" class="tab">
<ModIcon />
My mods
</nuxt-link>
<nuxt-link :to="'/dashboard/notifications'" class="tab last">
<nuxt-link :to="'/dashboard/notifications'" class="tab">
<NotificationsIcon />
Notifications
<div v-if="this.$user.notifications.count > 0" class="notif-count">
{{ this.$user.notifications.count }}
</div>
</nuxt-link>
<nuxt-link :to="'/dashboard/follows'" class="tab last">
<nuxt-link :to="'/dashboard/follows'" class="tab">
<FollowIcon />
Followed mods
</nuxt-link>
@ -23,26 +23,26 @@
$auth.user.role === 'admin' || $auth.user.role === 'moderator'
"
:to="'/dashboard/moderation'"
class="tab last"
class="tab"
>
<ModerationIcon />
Moderation
</nuxt-link>
<nuxt-link :to="'/dashboard/settings'" class="tab last">
<nuxt-link :to="'/dashboard/settings'" class="tab">
<SettingsIcon />
Settings
</nuxt-link>
<nuxt-link :to="'/dashboard/privacy'" class="tab last">
<nuxt-link :to="'/dashboard/privacy'" class="tab">
<ShieldIcon />
Privacy settings
</nuxt-link>
</div>
<div v-else class="card page-nav">
<a :href="authUrl" class="tab last">
<a :href="authUrl" class="tab">
<UserIcon />
Log in
</a>
<nuxt-link :to="'/dashboard/privacy'" class="tab last">
<nuxt-link :to="'/dashboard/privacy'" class="tab">
<SettingsIcon />
Privacy settings
</nuxt-link>

View File

@ -221,7 +221,7 @@ export default {
mounted() {
this.$emit('update:link-bar', [
['Versions', 'versions'],
[this.version.name, 'versions/' + this.version.id],
[this.version.name, 'version/' + this.version.id],
])
},
methods: {

View File

@ -12,6 +12,7 @@ const options = {
h4: ['id'],
h5: ['id'],
h6: ['id'],
input: ['checked', 'disabled', 'type'],
iframe: ['width', 'height', 'allowfullscreen', 'frameborder'],
},
onIgnoreTagAttr: (tag, name, value) => {