mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Input: Fix margins when not using prefix/suffix (#43726)
This commit is contained in:
parent
c8e7368ea6
commit
0013eb3555
@ -58,8 +58,8 @@ export const Input = React.forwardRef<HTMLInputElement, Props>((props, ref) => {
|
||||
className={styles.input}
|
||||
{...restProps}
|
||||
style={{
|
||||
paddingLeft: prefixRect ? prefixRect.width + 12 : undefined,
|
||||
paddingRight: suffixRect && (suffix || loading) ? suffixRect.width + 12 : undefined,
|
||||
paddingLeft: prefix ? prefixRect.width + 12 : undefined,
|
||||
paddingRight: suffix || loading ? suffixRect.width + 12 : undefined,
|
||||
}}
|
||||
/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user