Skip to content

Commit b988750

Browse files
committed
Enhance SearchInputBox styling with improved input padding and button positioning
1 parent 1d027c7 commit b988750

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/@molecules/SearchInput/SearchInputBox.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ForwardedRef, forwardRef, MouseEvent } from 'react'
77
import { useTranslation } from 'react-i18next'
88
import styled, { css } from 'styled-components'
99

10-
import { Input, MagnifyingGlassSVG } from '@ensdomains/thorin'
10+
import { Input, MagnifyingGlassSVG } from '@ensdomains/thorin'
1111

1212
const SearchInputWrapper = styled.div<{ $size: 'medium' | 'extraLarge' }>(
1313
({ theme, $size }) => css`
@@ -16,6 +16,13 @@ const SearchInputWrapper = styled.div<{ $size: 'medium' | 'extraLarge' }>(
1616
border-radius: ${theme.radii['2.5xLarge']};
1717
border-color: ${theme.colors.border};
1818
width: 100%;
19+
& input {
20+
padding-right: ${theme.space['12']};
21+
}
22+
& button {
23+
position: relative;
24+
right: -${theme.space['4']};
25+
}
1926
& input::placeholder {
2027
color: ${theme.colors.greyPrimary};
2128
font-weight: ${theme.fontWeights.bold};

0 commit comments

Comments
 (0)