mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-26 12:29:05 +01:00
Fixed website select.
This commit is contained in:
parent
69a189aae7
commit
aa5d81d6a1
@ -109,7 +109,7 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.layout}>
|
<div className={styles.layout}>
|
||||||
<div className={styles.menu}>
|
<div className={styles.menu}>
|
||||||
<LinkButton href={pathname} className={styles.back}>
|
<LinkButton href={pathname} className={styles.back} variant="quiet">
|
||||||
<Icon rotate={180}>
|
<Icon rotate={180}>
|
||||||
<Icons.ArrowRight />
|
<Icons.ArrowRight />
|
||||||
</Icon>
|
</Icon>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Dropdown, Item } from 'react-basics';
|
import { Dropdown, Item } from 'react-basics';
|
||||||
import useApi from 'components/hooks/useApi';
|
import useApi from 'components/hooks/useApi';
|
||||||
import useMessages from 'components/hooks/useMessages';
|
import useMessages from 'components/hooks/useMessages';
|
||||||
|
import styles from './WebsiteSelect.module.css';
|
||||||
|
|
||||||
export function WebsiteSelect({ websiteId, onSelect }) {
|
export function WebsiteSelect({ websiteId, onSelect }) {
|
||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
@ -13,6 +14,7 @@ export function WebsiteSelect({ websiteId, onSelect }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
menuProps={{ className: styles.dropdown }}
|
||||||
items={data?.data}
|
items={data?.data}
|
||||||
value={websiteId}
|
value={websiteId}
|
||||||
renderValue={renderValue}
|
renderValue={renderValue}
|
||||||
|
4
src/components/input/WebsiteSelect.module.css
Normal file
4
src/components/input/WebsiteSelect.module.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.dropdown {
|
||||||
|
max-height: 400px;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user