Skip to content

Commit 34853eb

Browse files
committed
chore: 링크에 색상 추가
1 parent ff31055 commit 34853eb

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

apps/pyconkr-admin/src/components/layouts/admin_editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ const MDRendererContainer = styled(Box)(({ theme }) => ({
162162
"& .markdown-body": {
163163
width: "100%",
164164
p: { margin: theme.spacing(2, 0) },
165+
a: { color: theme.palette.primary.main },
165166
},
166167
}));
167168

apps/pyconkr-admin/src/components/pages/modification_audit/components.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ type SharedPreviewFieldProps = {
2727

2828
type PreviewFieldProps = Omit<TextFieldProps, "value" | "name" | "label"> & SharedPreviewFieldProps;
2929

30+
const MarkdownContainerBox = styled(Box)(({ theme }) => ({
31+
width: "100%",
32+
color: "black",
33+
"& .markdown-body": {
34+
width: "100%",
35+
p: { margin: theme.spacing(2, 0) },
36+
a: { color: theme.palette.primary.main },
37+
},
38+
}));
39+
3040
export const PreviewTextField: React.FC<PreviewFieldProps> = ({ originalDataset, previewDataset, name, ...props }) => {
3141
const textFieldSx: TextFieldProps["sx"] = {
3242
"& .MuiInputBase-input, & .Mui-disabled": {
@@ -69,28 +79,28 @@ export const PreviewTextField: React.FC<PreviewFieldProps> = ({ originalDataset,
6979
export const PreviewMarkdownField: React.FC<SharedPreviewFieldProps> = ({ originalDataset, previewDataset, name, label }) => {
7080
return originalDataset[name] === previewDataset[name] ? (
7181
<Common.Components.Fieldset legend={label} style={{ width: "100%" }}>
72-
<Box sx={{ width: "100%", color: "black", "& .markdown-body": { width: "100%" } }}>
82+
<MarkdownContainerBox>
7383
<Common.Components.MDXRenderer format="md" text={(previewDataset[name] as string) || "(값 없음)"} />
74-
</Box>
84+
</MarkdownContainerBox>
7585
</Common.Components.Fieldset>
7686
) : (
7787
<Box sx={{ my: 1 }}>
7888
<Accordion>
7989
<AccordionSummary>
8090
<Stack sx={{ width: "100%" }} direction="column" alignItems="flex-start" justifyContent="space-between">
8191
<Common.Components.Fieldset legend={label} style={{ width: "100%", backgroundColor: "rgba(255, 255, 0, 0.1)" }}>
82-
<Box sx={{ width: "100%", color: "black", "& .markdown-body": { width: "100%" } }}>
92+
<MarkdownContainerBox>
8393
<Common.Components.MDXRenderer format="md" text={(previewDataset[name] as string) || "(값 없음)"} />
84-
</Box>
94+
</MarkdownContainerBox>
8595
</Common.Components.Fieldset>
8696
<Typography variant="caption">기존 값을 보려면 여기를 클릭해주세요.</Typography>
8797
</Stack>
8898
</AccordionSummary>
8999
<AccordionDetails>
90100
<Common.Components.Fieldset legend={label} style={{ backgroundColor: "rgba(0, 64, 64, 0.1)" }}>
91-
<Box sx={{ flexGrow: 1, color: "black", "& .markdown-body": { width: "100%" } }}>
101+
<MarkdownContainerBox>
92102
<Common.Components.MDXRenderer format="md" text={(originalDataset[name] as string) || "(값 없음)"} />
93-
</Box>
103+
</MarkdownContainerBox>
94104
</Common.Components.Fieldset>
95105
</AccordionDetails>
96106
</Accordion>

apps/pyconkr-admin/src/components/pages/presentation/editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const MDXRendererContainer = styled(Box)(({ theme }) => ({
5959
"& .markdown-body": {
6060
width: "100%",
6161
p: { margin: theme.spacing(2, 0) },
62+
a: { color: theme.palette.primary.main },
6263
},
6364
}));
6465

apps/pyconkr-participant-portal/src/components/elements/multilang_field.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const MDRendererContainer = styled(Box)<{ fullWidth?: boolean }>(({ theme, fullW
129129
padding: theme.spacing(1, 2),
130130
width: "100%",
131131
p: { margin: theme.spacing(2, 0) },
132+
a: { color: theme.palette.primary.main },
132133
},
133134
}));
134135

apps/pyconkr/src/components/pages/presentation_detail.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const DescriptionBox = styled(Box)(({ theme }) => ({
5050
"& .markdown-body": {
5151
width: "100%",
5252
p: { margin: theme.spacing(2, 0) },
53+
a: { color: theme.palette.primary.main },
5354
},
5455
}));
5556

@@ -59,6 +60,7 @@ const BiographyBox = styled(Box)(({ theme }) => ({
5960
"& .markdown-body": {
6061
width: "100%",
6162
p: { margin: theme.spacing(2, 0) },
63+
a: { color: theme.palette.primary.main },
6264
},
6365
}));
6466

apps/pyconkr/src/components/pages/sponsor_detail.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const DescriptionBox = styled(Box)(({ theme }) => ({
4545
"& .markdown-body": {
4646
width: "100%",
4747
p: { margin: theme.spacing(2, 0) },
48+
a: { color: theme.palette.primary.main },
4849
},
4950
}));
5051

0 commit comments

Comments
 (0)