diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index cd222a4d9..474097972 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -379,6 +379,7 @@ ? issue.body.edits.at(-1) : undefined} author={issue.body.author} + caption="opened" reactions={issue.body.reactions} timestamp={issue.body.edits.slice(-1)[0].timestamp} body={issue.body.edits.slice(-1)[0].body} diff --git a/src/views/repo/Patch.svelte b/src/views/repo/Patch.svelte index 645f148e7..dde055c4e 100644 --- a/src/views/repo/Patch.svelte +++ b/src/views/repo/Patch.svelte @@ -4,15 +4,13 @@ import type { RepoInfo } from "@bindings/repo/RepoInfo"; import type { Revision } from "@bindings/cob/patch/Revision"; - import { authorForNodeId, formatTimestamp } from "@app/lib/utils"; - + import CommentComponent from "@app/components/Comment.svelte"; import CopyableId from "@app/components/CopyableId.svelte"; import Icon from "@app/components/Icon.svelte"; import Id from "@app/components/Id.svelte"; import InlineTitle from "@app/components/InlineTitle.svelte"; import Layout from "./Layout.svelte"; import Link from "@app/components/Link.svelte"; - import Markdown from "@app/components/Markdown.svelte"; import NodeId from "@app/components/NodeId.svelte"; import PatchTeaser from "@app/components/PatchTeaser.svelte"; import Sidebar from "@app/components/Sidebar.svelte"; @@ -50,9 +48,21 @@ padding: 0 1rem 1rem 0; } - .body { + .patch-body { + margin-top: 1rem; + position: relative; + } + /* We put the background and clip-path in a separate element to prevent + popovers being clipped in the main element. */ + .patch-body::after { + position: absolute; + z-index: -1; + content: " "; background-color: var(--color-background-float); - padding: 1rem; + clip-path: var(--2px-corner-fill); + width: 100%; + height: 100%; + top: 0; } @@ -109,27 +119,23 @@