toggleSidebar(state)"
- @show-filters="(state) => toggleFilters(state)"
- />
+
-
+
+
+
@@ -45,6 +43,7 @@ import Warning from './warning.vue';
import Header from '../header/header.vue';
import Sidebar from '../sidebar/sidebar.vue';
import Filters from '../filters/filters.vue';
+import Settings from '../settings/settings.vue';
function toggleSidebar(state) {
this.showSidebar = typeof state === 'boolean' ? state : !this.showSidebar;
@@ -55,6 +54,11 @@ function toggleFilters(state) {
this.showSidebar = false;
}
+function toggleSettings(state) {
+ this.showSettings = state;
+ this.showSidebar = false;
+}
+
async function setConsent(consent, includeQueer) {
if (consent) {
this.showWarning = false;
@@ -88,6 +92,9 @@ function scrollToTop() {
function mounted() {
document.addEventListener('click', this.blur);
window.addEventListener('resize', this.resize);
+
+ this.events.on('toggleSettings', this.toggleSettings);
+ this.events.on('toggleSidebar', this.toggleSidebar);
}
function beforeUnmount() {
@@ -101,12 +108,14 @@ export default {
Sidebar,
Warning,
Filters,
+ Settings,
},
data() {
return {
showSidebar: false,
showWarning: localStorage.getItem('consent') !== window.env.sessionId,
showFilters: false,
+ showSettings: false,
selected: null,
};
},
@@ -115,6 +124,7 @@ export default {
methods: {
toggleSidebar,
toggleFilters,
+ toggleSettings,
setConsent,
blur,
resize,
diff --git a/assets/components/dialog/dialog.vue b/assets/components/dialog/dialog.vue
index 9f82f823..2df65231 100755
--- a/assets/components/dialog/dialog.vue
+++ b/assets/components/dialog/dialog.vue
@@ -114,13 +114,16 @@ export default {
}
::v-deep(.dialog-body) {
- padding: 1rem;
flex-grow: 1;
+ box-sizing: border-box;
+ padding: 1rem;
overflow-y: auto;
}
::v-deep(.dialog-section:not(:last-child)) {
+ padding-bottom: 1rem;
border-bottom: solid 1px var(--shadow-hint);
+ margin-bottom: 1rem;
overflow: auto;
}
diff --git a/assets/components/header/header.vue b/assets/components/header/header.vue
index a481d442..aa7bffcc 100755
--- a/assets/components/header/header.vue
+++ b/assets/components/header/header.vue
@@ -1,7 +1,7 @@