Adjust padding in Layout and TaskFormPage components for improved spacing. Enhance markdown preview styling with custom CSS for better link visibility and interaction.

This commit is contained in:
Primakov Alexandr Alexandrovich 2025-11-04 10:47:18 +03:00
parent 0544c95363
commit b91ee56bf0
2 changed files with 28 additions and 4 deletions

View File

@ -122,7 +122,7 @@ export const Layout: React.FC<LayoutProps> = ({ children }) => {
</Box>
{/* Main Content */}
<Box px={4} py={8} w="100%">
<Box px={2} py={8} w="100%">
{children}
</Box>
</Box>

View File

@ -124,7 +124,7 @@ export const TaskFormPage: React.FC = () => {
as="form"
onSubmit={handleSubmit}
bg="white"
p={6}
p={4}
borderRadius="lg"
boxShadow="sm"
borderWidth="1px"
@ -178,7 +178,19 @@ export const TaskFormPage: React.FC = () => {
bg="gray.50"
>
{description ? (
<Box className="markdown-preview">
<Box
className="markdown-preview"
css={{
'& a': {
color: '#0f766e',
textDecoration: 'underline',
cursor: 'pointer',
'&:hover': {
color: '#115e59',
}
}
}}
>
<ReactMarkdown>{description}</ReactMarkdown>
</Box>
) : (
@ -226,7 +238,19 @@ export const TaskFormPage: React.FC = () => {
overflowY="auto"
>
{description ? (
<Box className="markdown-preview">
<Box
className="markdown-preview"
css={{
'& a': {
color: '#0f766e',
textDecoration: 'underline',
cursor: 'pointer',
'&:hover': {
color: '#115e59',
}
}
}}
>
<ReactMarkdown>{description}</ReactMarkdown>
</Box>
) : (