From ba3c2780023e237f95fd05b04cca5a2e7bf696ca Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 12 Feb 2020 01:26:01 +0200 Subject: [PATCH] dismiss warning when selecting other themes, fix collapsed attachments link color --- src/components/attachment/attachment.vue | 2 ++ src/components/style_switcher/style_switcher.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 0748b2f042..a7e217c113 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -130,6 +130,8 @@ .placeholder { margin-right: 8px; margin-bottom: 4px; + color: $fallback--link; + color: var(--postLink, $fallback--link); } .nsfw-placeholder { diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 0c8a9c3bcc..a7f586f4b4 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -385,6 +385,7 @@ export default { origin, forceUseSource = false ) { + this.dismissWarning() if (!source && !theme) { throw new Error('Can\'t load theme: empty') } @@ -723,6 +724,7 @@ export default { } }, selected () { + this.dismissWarning() if (this.selectedVersion === 1) { if (!this.keepRoundness) { this.clearRoundness()