mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed sticky header scrolling. Updated settings button.
This commit is contained in:
parent
5262d19c8b
commit
bb99b3eba5
16 changed files with 109 additions and 134 deletions
|
|
@ -7,7 +7,7 @@ import Icons from 'components/icons';
|
|||
import { labels } from 'components/messages';
|
||||
import styles from './LanguageButton.module.css';
|
||||
|
||||
export default function LanguageButton({ tooltipPosition = 'top' }) {
|
||||
export default function LanguageButton({ tooltipPosition = 'top', menuPosition = 'right' }) {
|
||||
const { formatMessage } = useIntl();
|
||||
const { locale, saveLocale } = useLocale();
|
||||
const items = Object.keys(languages).map(key => ({ ...languages[key], value: key }));
|
||||
|
|
@ -25,7 +25,7 @@ export default function LanguageButton({ tooltipPosition = 'top' }) {
|
|||
</Icon>
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Popup position="right" alignment="end">
|
||||
<Popup position={menuPosition} alignment="end">
|
||||
<div className={styles.menu}>
|
||||
{items.map(({ value, label }) => {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue