mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Responsive fixes.
This commit is contained in:
parent
3d8402d2f1
commit
8a66603d32
16 changed files with 302 additions and 231 deletions
|
|
@ -28,6 +28,7 @@ export function WebsiteDateFilter({
|
|||
query: { compare = 'prev', offset = 0 },
|
||||
} = useNavigation();
|
||||
const disableForward = isAllTime || isAfter(dateRange.endDate, new Date());
|
||||
const showCompare = allowCompare && !isAllTime;
|
||||
|
||||
const websiteDateRange = useDateRangeQuery(websiteId);
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ export function WebsiteDateFilter({
|
|||
}, [dateRange]);
|
||||
|
||||
return (
|
||||
<Row gap>
|
||||
<Row wrap="wrap" gap>
|
||||
{showButtons && !isAllTime && !isCustomRange && (
|
||||
<Row gap="1">
|
||||
<Button onPress={() => handleIncrement(-1)} variant="outline">
|
||||
|
|
@ -85,7 +86,7 @@ export function WebsiteDateFilter({
|
|||
renderDate={+offset !== 0}
|
||||
/>
|
||||
</Row>
|
||||
{allowCompare && !isAllTime && (
|
||||
{showCompare && (
|
||||
<Row alignItems="center" gap>
|
||||
<Text weight="bold">VS</Text>
|
||||
<Row width="200px">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue