mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Fix action buttons spanning multiple lines not being shown
This commit is contained in:
parent
aae730f0f1
commit
6c369232e3
1 changed files with 8 additions and 4 deletions
|
|
@ -94,16 +94,19 @@ const ActionsGutter: React.FC<ActionsGutterProps> = ({
|
|||
buttons = (
|
||||
<foreignObject
|
||||
x={0}
|
||||
y={topLeft}
|
||||
y={Math.min(topLeft, topRight)}
|
||||
width={actualWidth}
|
||||
height={bottomRight - topLeft + 24}
|
||||
height={
|
||||
Math.max(bottomRight, bottomLeft) - Math.min(topLeft, topRight) + 24
|
||||
}
|
||||
>
|
||||
<div style={{ position: "relative", height: "100%" }}>
|
||||
<div
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
top: lineHeight / 2 - 12,
|
||||
top:
|
||||
topLeft - Math.min(topLeft, topRight) + lineHeight / 2 - 12,
|
||||
}}
|
||||
>
|
||||
<ButtonRightArrow
|
||||
|
|
@ -115,7 +118,8 @@ const ActionsGutter: React.FC<ActionsGutterProps> = ({
|
|||
style={{
|
||||
position: "absolute",
|
||||
right: 0,
|
||||
top: topRight - topLeft + lineHeight / 2 - 12,
|
||||
top:
|
||||
topRight - Math.min(topLeft, topRight) + lineHeight / 2 - 12,
|
||||
}}
|
||||
>
|
||||
<ButtonLeftArrow
|
||||
|
|
|
|||
Loading…
Reference in a new issue