We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebb676 commit f970623Copy full SHA for f970623
app/components/selection/distance.element.css
@@ -24,6 +24,7 @@
24
z-index: var(--layer-3);
25
display: flex;
26
align-items: center;
27
+ justify-content: var(--justify, 'flex-start');
28
flex-direction: var(--direction);
29
}
30
app/components/selection/distance.element.js
@@ -25,6 +25,9 @@ export class Distance extends HTMLElement {
this.style.setProperty('--direction', v ? 'column' : 'row')
this.style.setProperty('--quadrant', q)
+ if (q === 'left')
+ this.style.setProperty('--justify', 'flex-end')
+
31
v
32
? this.style.setProperty('--distance-h', `${d}px`)
33
: this.style.setProperty('--distance-w', `${d}px`)
0 commit comments