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