mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 17:39:24 +00:00
Formatting
This commit is contained in:
parent
e5909466d4
commit
55f3c97f2a
@ -1,4 +1,4 @@
|
|||||||
import { Stack, Card, Text } from '@mantine/core';
|
import { Stack, Card, Text, Flex } from '@mantine/core';
|
||||||
import { Tooltip } from '../../shared/Tooltip';
|
import { Tooltip } from '../../shared/Tooltip';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { type SplitMethod, METHOD_OPTIONS } from '../../../constants/splitConstants';
|
import { type SplitMethod, METHOD_OPTIONS } from '../../../constants/splitConstants';
|
||||||
@ -38,7 +38,7 @@ const SplitMethodSelector = ({
|
|||||||
<Card
|
<Card
|
||||||
radius="md"
|
radius="md"
|
||||||
w="100%"
|
w="100%"
|
||||||
h={'3.5rem'}
|
h={'2.8rem'}
|
||||||
style={{
|
style={{
|
||||||
cursor: disabled ? 'default' : 'pointer',
|
cursor: disabled ? 'default' : 'pointer',
|
||||||
backgroundColor: 'var(--mantine-color-gray-2)',
|
backgroundColor: 'var(--mantine-color-gray-2)',
|
||||||
@ -64,17 +64,12 @@ const SplitMethodSelector = ({
|
|||||||
}}
|
}}
|
||||||
onClick={() => handleMethodClick(option.method)}
|
onClick={() => handleMethodClick(option.method)}
|
||||||
>
|
>
|
||||||
<div style={{ width: '100%', position: 'relative', display: 'flex', flexDirection: 'row' }}>
|
<Flex align={'center'} w="100%" >
|
||||||
{/* Prefix in top left corner */}
|
<Text size="sm" c="dimmed" ta="center" fw={350} >
|
||||||
<Text size="xs" c="dimmed" ta="center" fw={400} style={{
|
|
||||||
|
|
||||||
}}>
|
|
||||||
{t(option.prefixKey, "Split by")}
|
{t(option.prefixKey, "Split by")}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<div style={{ }}>
|
|
||||||
<Text
|
<Text
|
||||||
fw={500}
|
fw={600}
|
||||||
size="sm"
|
size="sm"
|
||||||
c={undefined}
|
c={undefined}
|
||||||
ta="center"
|
ta="center"
|
||||||
@ -82,8 +77,7 @@ const SplitMethodSelector = ({
|
|||||||
>
|
>
|
||||||
{t(option.nameKey, "Method Name")}
|
{t(option.nameKey, "Method Name")}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</Flex>
|
||||||
</div>
|
|
||||||
</Card>
|
</Card>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
))}
|
))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user