Skip to content

Commit

Permalink
fix(frontend): add docs for deduplicate option
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Nov 2, 2024
1 parent 4d95fa3 commit 4bf5480
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions apps/frontend/app/routes/_dashboard.settings.preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ const EditDashboardElement = (props: {
{...provided.draggableProps}
className={cn({ [classes.itemDragging]: snapshot.isDragging })}
>
<Group justify="space-between">
<Group justify="space-between" wrap="nowrap">
<Group>
<div
{...provided.dragHandleProps}
Expand All @@ -690,7 +690,9 @@ const EditDashboardElement = (props: {
stroke={1.5}
/>
</div>
<Title order={3}>{changeCase(props.lot)}</Title>
<Text fw="bold" fz={{ md: "lg", lg: "xl" }}>
{changeCase(props.lot)}
</Text>
</Group>
<Switch
label="Hidden"
Expand All @@ -710,7 +712,7 @@ const EditDashboardElement = (props: {
}}
/>
</Group>
<Group gap="xl">
<Group gap="xl" wrap="nowrap">
{EDITABLE_NUM_ELEMENTS.includes(props.lot) ? (
<NumberInput
size="xs"
Expand All @@ -733,10 +735,12 @@ const EditDashboardElement = (props: {
) : null}
{EDITABLE_DEDUPLICATE_MEDIA.includes(props.lot) ? (
<Switch
mt="md"
size="xs"
label="Deduplicate media"
disabled={!!props.isEditDisabled}
defaultChecked={focusedElement.deduplicateMedia || undefined}
styles={{ description: { width: rem(200) } }}
description="If there's more than one episode of a media, keep the first one"
onChange={(ev) => {
const newValue = ev.currentTarget.checked;
const newDashboardData = Array.from(
Expand Down

0 comments on commit 4bf5480

Please sign in to comment.