Skip to content

Commit

Permalink
fix: improve input component display on focus (#581)
Browse files Browse the repository at this point in the history
- Change viewportClassName from 'p-1' to 'px-1'
- Ensures input is fully visible when focused
  • Loading branch information
kuizuo authored Sep 23, 2024
1 parent e420451 commit d8ddffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/modules/settings/modal/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Content = () => {
mask={false}
ref={setScroller}
rootClassName="h-full grow flex-1 shrink-0 overflow-auto pl-8 pr-7"
viewportClassName="pr-1 min-h-full [&>div]:min-h-full [&>div]:relative pb-8"
viewportClassName="px-1 min-h-full [&>div]:min-h-full [&>div]:relative pb-8"
>
<Component />

Expand Down

0 comments on commit d8ddffb

Please sign in to comment.