Skip to content

Commit 5c2d000

Browse files
committed
style: adjust margin
Signed-off-by: Xeu <thankrain@qq.com>
1 parent 3a68b55 commit 5c2d000

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/components/adjacent_feed.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function AdjacentSection({id, setError}: { id: string, setError: (error:
4545

4646
export function AdjacentCard({data, type}: { data: AdjacentFeed | null | undefined, type: "previous" | "next" }) {
4747
const direction = type === "previous" ? "text-start" : "text-end"
48-
const radius = type === "previous" ? "rounded-l-2xl" : "rounded-r-2xl"
48+
const radius = type === "previous" ? "rounded-t-2xl sm:rounded-none sm:rounded-l-2xl" : "rounded-b-2xl sm:rounded-none sm:rounded-r-2xl"
4949
const {t} = useTranslation()
5050
if (!data) {
5151
return (<div className="w-full p-6 duration-300">

client/src/page/feed.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export function FeedPage({ id, TOC, clean }: { id: string, TOC: () => JSX.Elemen
305305
</main>
306306
<div className="w-80 hidden lg:block relative">
307307
<div
308-
className={`ml-2 start-0 end-0 top-[5.5rem] sticky`}
308+
className={`start-0 end-0 top-[5.5rem] sticky`}
309309
>
310310
<TOC />
311311
</div>
@@ -408,7 +408,7 @@ function CommentInput({
408408
});
409409
}
410410
return (
411-
<div className="w-full rounded-2xl bg-w t-primary m-2 p-6 items-end flex flex-col">
411+
<div className="w-full rounded-2xl bg-w t-primary p-6 items-end flex flex-col">
412412
<div className="flex flex-col w-full items-start mb-4">
413413
<label htmlFor="comment">{t("comment.title")}</label>
414414
</div>

0 commit comments

Comments
 (0)