改进输入框包装器的样式。
This commit is contained in:
parent
a3de0f961a
commit
1b41fb4d22
|
@ -193,6 +193,7 @@
|
|||
resize: none;
|
||||
}
|
||||
.input_wrapper {
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--spacing-m);
|
||||
gap: var(--spacing-xs);
|
||||
.extended_input_wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
.rgb_input {
|
||||
text-align: right;
|
||||
text-transform: uppercase;
|
||||
|
|
|
@ -146,7 +146,7 @@ export function ColorComponentInput({ color, onChange }: ColorComponentInputProp
|
|||
|
||||
return (
|
||||
<div className={styles.rgb_input}>
|
||||
<div className={cx('input_wrapper')}>
|
||||
<div className={cx('input_wrapper', styles.extended_input_wrapper)}>
|
||||
<Icon icon="tabler:hash" />
|
||||
<input type="text" value={hex} onChange={updateHex} className={styles.rgb_input} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user