mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Toggle-switch aligned with Messages Title
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
b-modal#inbox-modal(title="", :hide-footer="true", size='lg')
|
b-modal#inbox-modal(title="", :hide-footer="true", size='lg')
|
||||||
.header-wrap.container(slot="modal-header")
|
.header-wrap.container.align-items-center(slot="modal-header")
|
||||||
.row
|
.row.align-items-center
|
||||||
.col-4
|
.col-4
|
||||||
.row
|
.row.align-items-center
|
||||||
.col-2
|
.col-2
|
||||||
.svg-icon.envelope(v-html="icons.messageIcon")
|
.svg-icon.envelope(v-html="icons.messageIcon")
|
||||||
.col-6
|
.col-6
|
||||||
@@ -13,17 +13,15 @@
|
|||||||
// button.btn.btn-secondary(@click='toggleClick()') +
|
// button.btn.btn-secondary(@click='toggleClick()') +
|
||||||
.col-4.offset-4
|
.col-4.offset-4
|
||||||
.svg-icon.close(v-html="icons.svgClose", @click='close()')
|
.svg-icon.close(v-html="icons.svgClose", @click='close()')
|
||||||
// .col-8.to-form(v-if='displayCreate')
|
toggle-switch.float-right(
|
||||||
// strong To:
|
|
||||||
// b-form-input
|
|
||||||
.row
|
|
||||||
.col-12
|
|
||||||
toggle-switch.float-right.align-with-tab(
|
|
||||||
:label="optTextSet.switchDescription",
|
:label="optTextSet.switchDescription",
|
||||||
:checked="!this.user.inbox.optOut"
|
:checked="!this.user.inbox.optOut"
|
||||||
:hoverText="optTextSet.popoverText",
|
:hoverText="optTextSet.popoverText",
|
||||||
@change="toggleOpt()"
|
@change="toggleOpt()"
|
||||||
)
|
)
|
||||||
|
// .col-8.to-form(v-if='displayCreate')
|
||||||
|
// strong To:
|
||||||
|
// b-form-input
|
||||||
.row(v-if="!this.user.inbox.optOut")
|
.row(v-if="!this.user.inbox.optOut")
|
||||||
.col-4.sidebar
|
.col-4.sidebar
|
||||||
.search-section
|
.search-section
|
||||||
@@ -66,18 +64,26 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '~client/assets/scss/colors.scss';
|
@import '~client/assets/scss/colors.scss';
|
||||||
|
|
||||||
|
.header-wrap {
|
||||||
|
padding: 0.5em;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.envelope {
|
.envelope {
|
||||||
color: $gray-400 !important;
|
color: $gray-400 !important;
|
||||||
margin-top: 1em;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
margin-top: .5em;
|
margin-top: .5em;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
}
|
position: absolute;
|
||||||
|
top: -1.9em;
|
||||||
h2 {
|
right: 0.3em;
|
||||||
margin-top: .5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
|||||||
Reference in New Issue
Block a user