Skip to content

Commit 6c9b9af

Browse files
committed
Format
1 parent cb47396 commit 6c9b9af

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Article.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ const Article: Component<Props> = (props) => {
3636
<span class="text-colors-textb;e-300a">{">"}</span> {meta.title}
3737
</span>
3838
<h1 class="text-colors-text-900a">{meta.title}</h1>
39-
<div class="mb-4 mt-1 text-colors-text-300a">
39+
<div class="text-colors-text-300a mt-1 mb-4">
4040
{meta.date} by <a href="/about">Matic Utsumi Gačar</a>
4141
</div>
42-
<Separator.Root class="mb-4 mt-4 border-colors-text-100a" />
42+
<Separator.Root class="border-colors-text-100a mt-4 mb-4" />
4343
<RawArticle
4444
components={{
4545
["data-lsp"]: (props: any) => {
@@ -60,7 +60,7 @@ const Article: Component<Props> = (props) => {
6060
pre: (props: any) => <pre {...props} title={null} />,
6161
Img: (props: any) => {
6262
return (
63-
<figure class="mb-8 mt-8 flex justify-center">
63+
<figure class="mt-8 mb-8 flex justify-center">
6464
<div>
6565
{/* <img {...props} class="ml-auto mr-auto" /> */}
6666
<DialogImage
@@ -69,7 +69,7 @@ const Article: Component<Props> = (props) => {
6969
alt="image"
7070
/>
7171
<Show when={props.caption}>
72-
<figcaption class="mt-1 text-colors-text-300a">
72+
<figcaption class="text-colors-text-300a mt-1">
7373
{props.caption}
7474
</figcaption>
7575
</Show>
@@ -83,7 +83,7 @@ const Article: Component<Props> = (props) => {
8383
return (
8484
<>
8585
<Show when={title}>
86-
<div class="relative left-[-8px] top-[-8px] flex w-[calc(100%+16px)] gap-2 bg-colors-primary-200 pb-1 pl-4 pr-4 pt-1">
86+
<div class="bg-colors-primary-200 relative top-[-8px] left-[-8px] flex w-[calc(100%+16px)] gap-2 pt-1 pr-4 pb-1 pl-4">
8787
<IconText icon="code" />
8888
{title}
8989
</div>
@@ -92,7 +92,7 @@ const Article: Component<Props> = (props) => {
9292
class={cn(
9393
$class,
9494
typeof c() == "string"
95-
? "rounded bg-colors-primary-300 pl-2 pr-2"
95+
? "bg-colors-primary-300 rounded pr-2 pl-2"
9696
: ""
9797
)}>
9898
{c()}
@@ -136,25 +136,25 @@ const Article: Component<Props> = (props) => {
136136
table: (props: any) => (
137137
<table
138138
{...props}
139-
class="mb-8 ml-auto mr-auto mt-8 border-2 border-colors-text-300a"
139+
class="border-colors-text-300a mt-8 mr-auto mb-8 ml-auto border-2"
140140
/>
141141
),
142142
th: (props: any) => {
143143
return (
144144
<th
145145
{...props}
146146
style={{ ...props.style, "text-align": props.style.textAlign }}
147-
class="pb-1 pl-2 pr-2 pt-1 text-colors-text-900a"
147+
class="text-colors-text-900a pt-1 pr-2 pb-1 pl-2"
148148
/>
149149
);
150150
},
151151
figcaption: (props: any) => (
152152
<figcaption
153153
{...props}
154-
class="relative top-[-24px] text-colors-text-300a"
154+
class="text-colors-text-300a relative top-[-24px]"
155155
/>
156156
),
157-
td: (props: any) => <td {...props} class="pb-1 pl-2 pr-2 pt-1" />,
157+
td: (props: any) => <td {...props} class="pt-1 pr-2 pb-1 pl-2" />,
158158
Spoiler: (props: any) => <Spoiler>{props.children}</Spoiler>,
159159
Embed: (props: any) => {
160160
if (props.url?.includes("://github.com")) {
@@ -163,14 +163,14 @@ const Article: Component<Props> = (props) => {
163163
);
164164
return (
165165
<a
166-
class="mb-8 ml-auto mr-auto mt-8 flex h-40 w-[440px] rounded bg-colors-primary-300 text-colors-text-600a no-underline"
166+
class="bg-colors-primary-300 text-colors-text-600a mt-8 mr-auto mb-8 ml-auto flex h-40 w-[440px] rounded no-underline"
167167
target="_blank"
168168
href={props.url}>
169169
<Icon
170170
icon="github"
171-
class="ml-8 mr-8 h-full w-16 flex-shrink-0"
171+
class="mr-8 ml-8 h-full w-16 flex-shrink-0"
172172
/>
173-
<div class="flex flex-1 flex-col gap-2 bg-colors-primary-200 pl-4 pr-4 shadow">
173+
<div class="bg-colors-primary-200 flex flex-1 flex-col gap-2 pr-4 pl-4 shadow">
174174
<span class="text-heading2 mt-6">
175175
<span class="text-colors-text-300a">{username}/</span>
176176
<span class="text-colors-text-900a">{projectName}</span>

0 commit comments

Comments
 (0)