Fix filter pill sizing for admin filters
This commit is contained in:
@@ -1397,6 +1397,9 @@ export default function MobileEventControlRoomPage() {
|
|||||||
borderColor={border}
|
borderColor={border}
|
||||||
paddingVertical="$2"
|
paddingVertical="$2"
|
||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
|
width="auto"
|
||||||
|
minWidth="max-content"
|
||||||
|
flexShrink={0}
|
||||||
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
||||||
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
||||||
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
||||||
@@ -1569,6 +1572,9 @@ export default function MobileEventControlRoomPage() {
|
|||||||
borderColor={border}
|
borderColor={border}
|
||||||
paddingVertical="$2"
|
paddingVertical="$2"
|
||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
|
width="auto"
|
||||||
|
minWidth="max-content"
|
||||||
|
flexShrink={0}
|
||||||
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
||||||
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
||||||
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
||||||
|
|||||||
@@ -250,6 +250,9 @@ export default function MobileEventMembersPage() {
|
|||||||
borderRadius="$pill"
|
borderRadius="$pill"
|
||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
paddingVertical="$1.5"
|
paddingVertical="$1.5"
|
||||||
|
width="auto"
|
||||||
|
minWidth="max-content"
|
||||||
|
flexShrink={0}
|
||||||
>
|
>
|
||||||
<Text fontSize="$xs" fontWeight="600">
|
<Text fontSize="$xs" fontWeight="600">
|
||||||
{option.label}
|
{option.label}
|
||||||
@@ -282,6 +285,9 @@ export default function MobileEventMembersPage() {
|
|||||||
borderRadius="$pill"
|
borderRadius="$pill"
|
||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
paddingVertical="$1.5"
|
paddingVertical="$1.5"
|
||||||
|
width="auto"
|
||||||
|
minWidth="max-content"
|
||||||
|
flexShrink={0}
|
||||||
>
|
>
|
||||||
<Text fontSize="$xs" fontWeight="600">
|
<Text fontSize="$xs" fontWeight="600">
|
||||||
{option.label}
|
{option.label}
|
||||||
|
|||||||
@@ -324,18 +324,21 @@ function EventsList({
|
|||||||
{filters.map((filter) => {
|
{filters.map((filter) => {
|
||||||
const active = filter.key === statusFilter;
|
const active = filter.key === statusFilter;
|
||||||
return (
|
return (
|
||||||
<ToggleGroup.Item
|
<ToggleGroup.Item
|
||||||
key={filter.key}
|
key={filter.key}
|
||||||
value={filter.key}
|
value={filter.key}
|
||||||
borderRadius="$4"
|
borderRadius="$4"
|
||||||
borderWidth={1}
|
borderWidth={1}
|
||||||
borderColor={border}
|
borderColor={border}
|
||||||
paddingVertical="$2"
|
paddingVertical="$2"
|
||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
width="auto"
|
||||||
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
minWidth="max-content"
|
||||||
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
flexShrink={0}
|
||||||
>
|
hoverStyle={{ backgroundColor: '$backgroundHover' }}
|
||||||
|
pressStyle={{ backgroundColor: '$backgroundPress' }}
|
||||||
|
activeStyle={{ backgroundColor: '$backgroundPress', borderColor: '$borderColorPress' }}
|
||||||
|
>
|
||||||
<XStack alignItems="center" gap="$2">
|
<XStack alignItems="center" gap="$2">
|
||||||
<Text fontSize="$xs" fontWeight={active ? '700' : '600'} color={active ? text : muted}>
|
<Text fontSize="$xs" fontWeight={active ? '700' : '600'} color={active ? text : muted}>
|
||||||
{filter.label}
|
{filter.label}
|
||||||
|
|||||||
@@ -586,6 +586,8 @@ export default function MobileNotificationsPage() {
|
|||||||
paddingHorizontal="$3"
|
paddingHorizontal="$3"
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
|
width="auto"
|
||||||
|
minWidth="max-content"
|
||||||
>
|
>
|
||||||
<Text fontSize="$xs" fontWeight="600" textAlign="center">
|
<Text fontSize="$xs" fontWeight="600" textAlign="center">
|
||||||
{filter.label}
|
{filter.label}
|
||||||
|
|||||||
Reference in New Issue
Block a user