From 8f7919388391742671ef0398e017383d7f0b2bc5 Mon Sep 17 00:00:00 2001 From: Ole Bertram Date: Wed, 4 Jul 2018 13:49:20 +0200 Subject: Unify button styles and use min-width This seemed to be the same across multiple components anyway. Switched to min-width to allow for buttons with longer text, e.g. from other languages. --- src/components/settings/settings.vue | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/components/settings/settings.vue') diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 6245e758..4786b930 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -83,8 +83,6 @@ .btn { margin-top: 1em; - min-height: 28px; - width: 10em; } } .setting-list { -- cgit v1.2.3-70-g09d2 From 87eee191b8eaa8b7c8a396f9c6ca976c280d44af Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 13 Aug 2018 17:07:45 +0300 Subject: Made pausing TL updating configurable. Added styles for disabled checkboxes. Shuffled settings a bit b/c all the settings are in "Attachments" section depsite the fact not all of them are attachments-related. --- src/App.scss | 8 +++ src/components/settings/settings.js | 4 ++ src/components/settings/settings.vue | 103 ++++++++++++++++++++--------------- src/components/timeline/timeline.js | 5 +- src/i18n/messages.js | 1 + 5 files changed, 76 insertions(+), 45 deletions(-) (limited to 'src/components/settings/settings.vue') diff --git a/src/App.scss b/src/App.scss index 2426b998..9f7ef860 100644 --- a/src/App.scss +++ b/src/App.scss @@ -142,6 +142,14 @@ input, textarea, .select { color: $fallback--fg; color: var(--fg, $fallback--fg); } + &:disabled, + { + &, + & + label, + & + label::before { + opacity: .5; + } + } + label::before { display: inline-block; content: '✔'; diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index a26111d6..e5f4b001 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -10,6 +10,7 @@ const settings = { muteWordsString: this.$store.state.config.muteWords.join('\n'), autoLoadLocal: this.$store.state.config.autoLoad, streamingLocal: this.$store.state.config.streaming, + pauseOnUnfocused: this.$store.state.config.pauseOnUnfocused, hoverPreviewLocal: this.$store.state.config.hoverPreview, stopGifs: this.$store.state.config.stopGifs } @@ -38,6 +39,9 @@ const settings = { streamingLocal (value) { this.$store.dispatch('setOption', { name: 'streaming', value }) }, + pauseOnUnfocusedLocal (value) { + this.$store.dispatch('setOption', { name: 'pauseOnUnfocused', value }) + }, hoverPreviewLocal (value) { this.$store.dispatch('setOption', { name: 'hoverPreview', value }) }, diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 6245e758..d6dbab27 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -1,53 +1,64 @@