Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c44e51ae
Commit
c44e51ae
authored
Aug 01, 2024
by
Timothy J. Baek
Browse files
refac
parent
3569fe9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
src/app.css
src/app.css
+4
-0
src/lib/components/common/SensitiveInput.svelte
src/lib/components/common/SensitiveInput.svelte
+1
-8
No files found.
src/app.css
View file @
c44e51ae
...
@@ -154,3 +154,7 @@ input[type='number'] {
...
@@ -154,3 +154,7 @@ input[type='number'] {
.tippy-box
[
data-theme
~=
'dark'
]
{
.tippy-box
[
data-theme
~=
'dark'
]
{
@apply
rounded-lg
bg-gray-950
text-xs
border
border-gray-900
shadow-xl;
@apply
rounded-lg
bg-gray-950
text-xs
border
border-gray-900
shadow-xl;
}
}
.password
{
-webkit-text-security
:
disc
;
}
src/lib/components/common/SensitiveInput.svelte
View file @
c44e51ae
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
<div class={outerClassName}>
<div class={outerClassName}>
<input
<input
class={inputClassName}
class={`${inputClassName} ${show ? '' : 'password'}`}
class:dot={!show}
{placeholder}
{placeholder}
bind:value
bind:value
required={required && !readOnly}
required={required && !readOnly}
...
@@ -62,9 +61,3 @@
...
@@ -62,9 +61,3 @@
{/if}
{/if}
</button>
</button>
</div>
</div>
<style>
.dot {
-webkit-text-security: disc;
}
</style>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment