mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
style: 🎨 Use Logical Style properties to apply same styles based on Language Direction (dir)
This commit is contained in:
parent
354da4bc56
commit
adf910306b
20 changed files with 35 additions and 34 deletions
|
|
@ -58,6 +58,6 @@
|
|||
gap: 20px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-right: 0;
|
||||
padding-inline-end: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import ReferrersTable from 'components/metrics/ReferrersTable';
|
|||
import ScreenTable from 'components/metrics/ScreenTable';
|
||||
import EventsTable from 'components/metrics/EventsTable';
|
||||
import SideNav from 'components/layout/SideNav';
|
||||
import { useNavigation, useMessages } from 'components/hooks';
|
||||
import { useNavigation, useMessages, useLocale } from 'components/hooks';
|
||||
import LinkButton from 'components/common/LinkButton';
|
||||
import styles from './WebsiteExpandedView.module.css';
|
||||
|
||||
|
|
@ -39,6 +39,7 @@ export default function WebsiteExpandedView({
|
|||
websiteId: string;
|
||||
domainName?: string;
|
||||
}) {
|
||||
const { dir } = useLocale();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const {
|
||||
router,
|
||||
|
|
@ -122,7 +123,7 @@ export default function WebsiteExpandedView({
|
|||
<div className={styles.layout}>
|
||||
<div className={styles.menu}>
|
||||
<LinkButton href={pathname} className={styles.back} variant="quiet" scroll={false}>
|
||||
<Icon rotate={180}>
|
||||
<Icon rotate={dir === 'rtl' ? 0 : 180}>
|
||||
<Icons.ArrowRight />
|
||||
</Icon>
|
||||
<Text>{formatMessage(labels.back)}</Text>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
|
||||
.icon {
|
||||
margin-right: 10px;
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
|
||||
.time {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue