fix: Clean up whitespace and formatting in various files
This commit is contained in:
@@ -2,21 +2,21 @@ import React, { useEffect, useState } from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import { fetchMarkdownContent } from './api';
|
||||
import {
|
||||
Box,
|
||||
Heading,
|
||||
Text,
|
||||
Code,
|
||||
Link,
|
||||
ListItem,
|
||||
OrderedList,
|
||||
UnorderedList,
|
||||
Table,
|
||||
Thead,
|
||||
Tbody,
|
||||
Tr,
|
||||
Th,
|
||||
Td,
|
||||
import {
|
||||
Box,
|
||||
Heading,
|
||||
Text,
|
||||
Code,
|
||||
Link,
|
||||
ListItem,
|
||||
OrderedList,
|
||||
UnorderedList,
|
||||
Table,
|
||||
Thead,
|
||||
Tbody,
|
||||
Tr,
|
||||
Th,
|
||||
Td,
|
||||
Divider,
|
||||
Container, // Added for layout
|
||||
Flex, // Added for layout
|
||||
@@ -34,13 +34,13 @@ const chakraComponents = {
|
||||
code: (props: any) => {
|
||||
const { inline, className, children, ...rest } = props;
|
||||
return !inline ? (
|
||||
<Box
|
||||
as="pre"
|
||||
p={4}
|
||||
rounded="md"
|
||||
bg="chakra-body-bg"
|
||||
<Box
|
||||
as="pre"
|
||||
p={4}
|
||||
rounded="md"
|
||||
bg="chakra-body-bg"
|
||||
boxShadow="sm"
|
||||
overflowX="auto"
|
||||
overflowX="auto"
|
||||
my={2}
|
||||
>
|
||||
<Code className={className} bg="transparent" {...rest}>
|
||||
@@ -102,10 +102,10 @@ const View: React.FC = () => {
|
||||
<Container maxW="container.xl" py={6} height="100%" display="flex" flexDirection="column">
|
||||
<Flex justifyContent="space-between" alignItems="center" mb={6} flexShrink={0}>
|
||||
<Heading as="h1" size="lg">Markdown View</Heading>
|
||||
<IconButton
|
||||
aria-label="Toggle theme"
|
||||
icon={colorMode === 'light' ? <MoonIcon /> : <SunIcon />}
|
||||
onClick={toggleColorMode}
|
||||
<IconButton
|
||||
aria-label="Toggle theme"
|
||||
icon={colorMode === 'light' ? <MoonIcon /> : <SunIcon />}
|
||||
onClick={toggleColorMode}
|
||||
/>
|
||||
</Flex>
|
||||
<Box p={5} borderWidth="1px" borderRadius="lg" boxShadow="md" overflowY="auto" flexGrow={1}>
|
||||
|
||||
@@ -11,7 +11,7 @@ const config: ThemeConfig = {
|
||||
const colors = {
|
||||
airflow: {
|
||||
50: '#EBF8FF', // Lightest blue
|
||||
100: '#BEE3F8',
|
||||
100: '#BEE3F8',
|
||||
200: '#90CDF4',
|
||||
300: '#63B3ED',
|
||||
400: '#4299E1', // Primary blue
|
||||
|
||||
Reference in New Issue
Block a user