Fix tracing graph on iOS (#9897)

This commit is contained in:
Bram Kragten 2021-08-28 01:04:52 +02:00 committed by GitHub
parent 67ab63f00e
commit 2fae0d2d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -153,7 +153,7 @@ export class HatGraphBranch extends LitElement {
z-index: 1;
}
::slotted([slot="head"]) {
margin-bottom: calc(var(--hat-graph-branch-height) / -2);
margin-bottom: calc(var(--hat-graph-branch-height) / -2px);
}
#lines {
position: absolute;

View File

@ -90,10 +90,12 @@ export class HatGraphNode extends LitElement {
display: flex;
flex-direction: column;
width: calc(var(--hat-graph-node-size) + var(--hat-graph-spacing));
height: calc(var(--hat-graph-node-size) + var(--hat-graph-spacing) + 1);
height: calc(
var(--hat-graph-node-size) + var(--hat-graph-spacing) + 1px
);
}
:host([graphStart]) {
height: calc(var(--hat-graph-node-size) + 2);
height: calc(var(--hat-graph-node-size) + 2px);
}
:host([track]) {
--stroke-clr: var(--track-clr);