mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Correctly clip the svg paths in the ActionsGutter
This commit is contained in:
parent
88fa756ab9
commit
55e1d21e93
1 changed files with 15 additions and 3 deletions
|
|
@ -170,16 +170,28 @@ const ActionsGutter: React.FC<ActionsGutterProps> = ({
|
|||
};
|
||||
|
||||
return (
|
||||
<div ref={containerRef} style={{ width: "100%" }}>
|
||||
<div
|
||||
ref={containerRef}
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
overflow: "hidden",
|
||||
position: "relative",
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
position: "absolute",
|
||||
overflow: "visible",
|
||||
}}
|
||||
>
|
||||
{diffChunks.map(drawChunk)}
|
||||
<defs>
|
||||
<clipPath id="gutter-clip">
|
||||
<rect x="0" y="0" width="100%" height="100%" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clipPath="url(#gutter-clip)">{diffChunks.map(drawChunk)}</g>
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue