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

fix comments top border

This commit is contained in:
2022-04-04 11:04:37 -04:00
parent 7142b5ece5
commit 0a741b4282

View File

@@ -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: "300px",
minHeight: "350px",
},
}); });
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