Skip to content

Commit

Permalink
fix: dropdown in form width
Browse files Browse the repository at this point in the history
  • Loading branch information
pataruco committed Dec 10, 2024
1 parent 28e26a1 commit 4666e55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/src/components/header/locale-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const LocaleSelector: React.FC<LocaleSelectorProps> = ({
}
slotProps={{
popup: {
disablePortal: true,
className: isMobile
? `${styles.popup} ${styles['popup--mobile']}`
: styles.popup,
Expand Down
2 changes: 2 additions & 0 deletions website/src/components/signup-form/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
// It is important because styles are inlined
top: var(--spacing-1) !important;
z-index: 10;
width: 100%;
}

.listbox {
Expand Down Expand Up @@ -122,6 +123,7 @@
}

&__field {
position: relative;
& p {
color: var(--foreground-error);
margin-top: var(--spacing-1);
Expand Down
1 change: 1 addition & 0 deletions website/src/components/signup-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const SignupForm: React.FC<SignupFormProps> = ({ lang }) => {
onChange={handleSelectRoleOnChange}
slotProps={{
popup: {
disablePortal: true,
className: styles.popup,
},
listbox: {
Expand Down

0 comments on commit 4666e55

Please sign in to comment.