1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 09:45:22 -04:00

fix comments top border

This commit is contained in:
Jake Jarvis 2022-04-04 11:04:37 -04:00
parent 7142b5ece5
commit 0a741b4282
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -7,12 +7,10 @@ import type { ComponentProps } from "react";
import type { GiscusProps } from "@giscus/react";
const Wrapper = styled("div", {
".giscus": {
marginTop: "2em",
paddingTop: "2em",
borderTop: "2px solid $light",
minHeight: "350px",
},
marginTop: "2em",
paddingTop: "2em",
borderTop: "2px solid $light",
minHeight: "300px",
});
export type CommentsProps = ComponentProps<typeof Wrapper> & {
@ -22,6 +20,7 @@ export type CommentsProps = ComponentProps<typeof Wrapper> & {
const Comments = ({ title, ...rest }: CommentsProps) => {
const { resolvedTheme } = useTheme();
// TODO: use custom `<Loading />` spinner component during suspense
return (
<Wrapper {...rest}>
<Giscus