Skip to content

Commit f970623

Browse files
author
Adam Argyle
committed
fixes left quadrant measurement alignment
1 parent aebb676 commit f970623

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/components/selection/distance.element.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
z-index: var(--layer-3);
2525
display: flex;
2626
align-items: center;
27+
justify-content: var(--justify, 'flex-start');
2728
flex-direction: var(--direction);
2829
}
2930

app/components/selection/distance.element.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export class Distance extends HTMLElement {
2525
this.style.setProperty('--direction', v ? 'column' : 'row')
2626
this.style.setProperty('--quadrant', q)
2727

28+
if (q === 'left')
29+
this.style.setProperty('--justify', 'flex-end')
30+
2831
v
2932
? this.style.setProperty('--distance-h', `${d}px`)
3033
: this.style.setProperty('--distance-w', `${d}px`)

0 commit comments

Comments
 (0)