mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 21:28:26 -04:00
fix comments top border
This commit is contained in:
parent
7142b5ece5
commit
0a741b4282
@ -7,12 +7,10 @@ import type { ComponentProps } from "react";
|
|||||||
import type { GiscusProps } from "@giscus/react";
|
import type { GiscusProps } from "@giscus/react";
|
||||||
|
|
||||||
const Wrapper = styled("div", {
|
const Wrapper = styled("div", {
|
||||||
".giscus": {
|
|
||||||
marginTop: "2em",
|
marginTop: "2em",
|
||||||
paddingTop: "2em",
|
paddingTop: "2em",
|
||||||
borderTop: "2px solid $light",
|
borderTop: "2px solid $light",
|
||||||
minHeight: "350px",
|
minHeight: "300px",
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type CommentsProps = ComponentProps<typeof Wrapper> & {
|
export type CommentsProps = ComponentProps<typeof Wrapper> & {
|
||||||
@ -22,6 +20,7 @@ export type CommentsProps = ComponentProps<typeof Wrapper> & {
|
|||||||
const Comments = ({ title, ...rest }: CommentsProps) => {
|
const Comments = ({ title, ...rest }: CommentsProps) => {
|
||||||
const { resolvedTheme } = useTheme();
|
const { resolvedTheme } = useTheme();
|
||||||
|
|
||||||
|
// TODO: use custom `<Loading />` spinner component during suspense
|
||||||
return (
|
return (
|
||||||
<Wrapper {...rest}>
|
<Wrapper {...rest}>
|
||||||
<Giscus
|
<Giscus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user