fix(analytics): full-width account selector on mobile
Matches the date-range picker below it instead of sitting content-width.
This commit is contained in:
parent
07c2e7cbf3
commit
6ead4eee84
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ const select = (account: AnalyticsAccount) => {
|
|||
role="combobox"
|
||||
:aria-expanded="open"
|
||||
:disabled="accounts.length === 0"
|
||||
class="h-auto min-w-[240px] justify-start gap-3 px-3 py-2 text-left font-medium"
|
||||
class="h-auto w-full justify-start gap-3 px-3 py-2 text-left font-medium sm:w-auto sm:min-w-[240px]"
|
||||
>
|
||||
<template v-if="selected">
|
||||
<div class="relative shrink-0">
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const platformSupportsDateRange = computed(() => {
|
|||
>
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
<PageHeader :title="$t('sidebar.analytics')" />
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<div class="flex w-full flex-wrap items-center gap-3 sm:w-auto">
|
||||
<AnalyticsAccountSelector
|
||||
:accounts="accounts"
|
||||
:selected-id="selectedAccountId"
|
||||
|
|
|
|||
Loading…
Reference in a new issue