From 1dd3a7f8340530a47333908d70903b1d486e67d7 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Tue, 3 Sep 2024 01:18:20 +0200 Subject: [PATCH] Only use necessary icons --- src/icons/EyeIcon.svelte | 13 +++++++++++++ src/icons/EyeSlashIcon.svelte | 18 ++++++++++++++++++ src/lib/style/app.scss | 6 ------ src/routes/Settings.svelte | 6 ++++-- 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 src/icons/EyeIcon.svelte create mode 100644 src/icons/EyeSlashIcon.svelte diff --git a/src/icons/EyeIcon.svelte b/src/icons/EyeIcon.svelte new file mode 100644 index 0000000..dd7513a --- /dev/null +++ b/src/icons/EyeIcon.svelte @@ -0,0 +1,13 @@ + + + + diff --git a/src/icons/EyeSlashIcon.svelte b/src/icons/EyeSlashIcon.svelte new file mode 100644 index 0000000..bf45888 --- /dev/null +++ b/src/icons/EyeSlashIcon.svelte @@ -0,0 +1,18 @@ + + + + + diff --git a/src/lib/style/app.scss b/src/lib/style/app.scss index 59cc5ac..c8b6e52 100644 --- a/src/lib/style/app.scss +++ b/src/lib/style/app.scss @@ -7,12 +7,6 @@ @import '@fontsource/oswald/latin-400.css'; @import './satsymbol'; -$bootstrap-icons-font: 'bootstrap-icons' !default; -$bootstrap-icons-font-dir: 'bootstrap-icons/font//fonts' !default; -$bootstrap-icons-font-file: '#{$bootstrap-icons-font-dir}/#{$bootstrap-icons-font}' !default; - -@import 'bootstrap-icons/font/bootstrap-icons.scss'; - $color-mode-type: media-query; $font-family-base: 'Ubuntu'; $font-size-base: 0.9rem; diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index e41424c..a607883 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -14,13 +14,14 @@ Col, Form, FormText, - Icon, Input, InputGroup, InputGroupText, Label, Row } from 'sveltestrap'; + import EyeIcon from '../icons/EyeIcon.svelte'; + import EyeSlashIcon from '../icons/EyeSlashIcon.svelte'; export let settings; @@ -504,7 +505,8 @@ type="button" on:click={() => (showPassword = !showPassword)} color={showPassword ? 'success' : 'danger'} - >{#if !showPassword}{:else}{/if} {$_('section.settings.httpAuthText')}