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:
parent
8798340d48
commit
5ccd40f530
@ -350,9 +350,6 @@
|
|||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
@extend %transparent-clickable;
|
@extend %transparent-clickable;
|
||||||
|
|
||||||
&.last {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
svg {
|
svg {
|
||||||
color: var(--color-icon);
|
color: var(--color-icon);
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
@ -367,6 +364,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,18 +3,18 @@
|
|||||||
<div class="page-contents">
|
<div class="page-contents">
|
||||||
<div class="sidebar-l">
|
<div class="sidebar-l">
|
||||||
<div v-if="$auth.user != null" class="card page-nav">
|
<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 />
|
<ModIcon />
|
||||||
My mods
|
My mods
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<nuxt-link :to="'/dashboard/notifications'" class="tab last">
|
<nuxt-link :to="'/dashboard/notifications'" class="tab">
|
||||||
<NotificationsIcon />
|
<NotificationsIcon />
|
||||||
Notifications
|
Notifications
|
||||||
<div v-if="this.$user.notifications.count > 0" class="notif-count">
|
<div v-if="this.$user.notifications.count > 0" class="notif-count">
|
||||||
{{ this.$user.notifications.count }}
|
{{ this.$user.notifications.count }}
|
||||||
</div>
|
</div>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<nuxt-link :to="'/dashboard/follows'" class="tab last">
|
<nuxt-link :to="'/dashboard/follows'" class="tab">
|
||||||
<FollowIcon />
|
<FollowIcon />
|
||||||
Followed mods
|
Followed mods
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
@ -23,26 +23,26 @@
|
|||||||
$auth.user.role === 'admin' || $auth.user.role === 'moderator'
|
$auth.user.role === 'admin' || $auth.user.role === 'moderator'
|
||||||
"
|
"
|
||||||
:to="'/dashboard/moderation'"
|
:to="'/dashboard/moderation'"
|
||||||
class="tab last"
|
class="tab"
|
||||||
>
|
>
|
||||||
<ModerationIcon />
|
<ModerationIcon />
|
||||||
Moderation
|
Moderation
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<nuxt-link :to="'/dashboard/settings'" class="tab last">
|
<nuxt-link :to="'/dashboard/settings'" class="tab">
|
||||||
<SettingsIcon />
|
<SettingsIcon />
|
||||||
Settings
|
Settings
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<nuxt-link :to="'/dashboard/privacy'" class="tab last">
|
<nuxt-link :to="'/dashboard/privacy'" class="tab">
|
||||||
<ShieldIcon />
|
<ShieldIcon />
|
||||||
Privacy settings
|
Privacy settings
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="card page-nav">
|
<div v-else class="card page-nav">
|
||||||
<a :href="authUrl" class="tab last">
|
<a :href="authUrl" class="tab">
|
||||||
<UserIcon />
|
<UserIcon />
|
||||||
Log in
|
Log in
|
||||||
</a>
|
</a>
|
||||||
<nuxt-link :to="'/dashboard/privacy'" class="tab last">
|
<nuxt-link :to="'/dashboard/privacy'" class="tab">
|
||||||
<SettingsIcon />
|
<SettingsIcon />
|
||||||
Privacy settings
|
Privacy settings
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
|
|||||||
@ -221,7 +221,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.$emit('update:link-bar', [
|
this.$emit('update:link-bar', [
|
||||||
['Versions', 'versions'],
|
['Versions', 'versions'],
|
||||||
[this.version.name, 'versions/' + this.version.id],
|
[this.version.name, 'version/' + this.version.id],
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -12,6 +12,7 @@ const options = {
|
|||||||
h4: ['id'],
|
h4: ['id'],
|
||||||
h5: ['id'],
|
h5: ['id'],
|
||||||
h6: ['id'],
|
h6: ['id'],
|
||||||
|
input: ['checked', 'disabled', 'type'],
|
||||||
iframe: ['width', 'height', 'allowfullscreen', 'frameborder'],
|
iframe: ['width', 'height', 'allowfullscreen', 'frameborder'],
|
||||||
},
|
},
|
||||||
onIgnoreTagAttr: (tag, name, value) => {
|
onIgnoreTagAttr: (tag, name, value) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user