Skip to content

Commit 01e0659

Browse files
committed
refactor(SelectView): adjust dropdown positioning for improved layout
- Updated the dropdown class in SelectView to use 'inset-inline-end-0' for better alignment. - This change enhances the visual layout of the dropdown, ensuring it appears correctly in relation to other UI elements.
1 parent 3265c5e commit 01e0659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/web/src/components/SelectView/SelectView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ export const SelectView = ({
142142
},
143143
})}
144144
data-testid="view-select-dropdown"
145-
className="absolute top-full right-0 z-50 mt-1 min-w-[140px] rounded border border-gray-600 bg-gray-800 py-1 shadow-lg"
145+
className="inset-inline-end-0 absolute top-full z-50 mt-1 min-w-[140px] rounded border border-gray-600 bg-gray-800 py-1 shadow-lg"
146146
role="listbox"
147-
tabIndex={0}
148147
>
149148
{options.map((option, index) => {
150149
const isSelected = currentView === option.view;

0 commit comments

Comments
 (0)