1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fix tag input on firefox, do refactor on it

This commit is contained in:
Fedor Katurov 2023-10-26 12:57:36 +06:00
parent a2a60aee8e
commit 29ed51b831
4 changed files with 34 additions and 31 deletions

View file

@ -130,10 +130,12 @@ const TagInput: FC<IProps> = ({ exclude, onAppend, onClearTag, onSubmit }) => {
<div className={styles.wrap} ref={wrapper}>
<TagWrapper
title={input || placeholder}
hasInput={true}
color={isAlbumTag ? 'primary' : undefined}
deletable={false}
className={styles.tag}
>
<input
className={styles.input}
type="text"
value={input}
size={1}

View file

@ -1,6 +1,32 @@
@import "src/styles/variables";
@import 'src/styles/variables';
.wrap {
position: relative;
z-index: 20;
}
.tag {
color: transparent !important;
min-width: 100px;
}
.input {
background: none;
border: none;
color: white;
outline: none;
display: inline-flex;
position: absolute;
font: inherit;
left: 0;
right: 0;
top: 0;
bottom: 0;
height: 100%;
width: 100%;
min-width: 100px;
padding-left: $tag_height;
padding-right: 5px;
box-sizing: border-box;
}