Skip to content

Commit

Permalink
Fixed website select.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Oct 15, 2023
1 parent 69a189a commit aa5d81d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/websites/[id]/WebsiteMenuView.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) {
return (
<div className={styles.layout}>
<div className={styles.menu}>
<LinkButton href={pathname} className={styles.back}>
<LinkButton href={pathname} className={styles.back} variant="quiet">
<Icon rotate={180}>
<Icons.ArrowRight />
</Icon>
Expand Down
2 changes: 2 additions & 0 deletions src/components/input/WebsiteSelect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Dropdown, Item } from 'react-basics';
import useApi from 'components/hooks/useApi';
import useMessages from 'components/hooks/useMessages';
import styles from './WebsiteSelect.module.css';

export function WebsiteSelect({ websiteId, onSelect }) {
const { formatMessage, labels } = useMessages();
Expand All @@ -13,6 +14,7 @@ export function WebsiteSelect({ websiteId, onSelect }) {

return (
<Dropdown
menuProps={{ className: styles.dropdown }}
items={data?.data}
value={websiteId}
renderValue={renderValue}
Expand Down
4 changes: 4 additions & 0 deletions src/components/input/WebsiteSelect.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.dropdown {
max-height: 400px;
overflow-y: auto;
}

0 comments on commit aa5d81d

Please sign in to comment.