fix(editor): Improve checkbox and lock icon alignment (#24575)

This commit is contained in:
Giulio Andreini
2026-01-26 15:09:18 +00:00
committed by GitHub
parent 44650b1bb3
commit 7129c88fd9
3 changed files with 13 additions and 10 deletions
@@ -66,8 +66,8 @@ function onUpdate(value: boolean | 'indeterminate') {
<style lang="css" module>
.checkbox {
display: inline-flex;
align-items: center;
flex-direction: row;
gap: var(--spacing--2xs);
cursor: pointer;
color: white;
&[data-disabled] {
@@ -76,10 +76,11 @@ function onUpdate(value: boolean | 'indeterminate') {
}
.checkboxRoot {
position: relative;
background: transparent;
width: 16px;
height: 16px;
border-radius: 4px;
border-radius: var(--radius);
display: flex;
align-items: center;
justify-content: center;
@@ -107,18 +108,20 @@ function onUpdate(value: boolean | 'indeterminate') {
}
.checkboxIndicator {
position: absolute;
display: flex;
align-items: center;
flex-direction: row;
justify-content: center;
}
.label {
padding-left: 15px;
font-size: 15px;
line-height: 1;
cursor: inherit;
color: var(--color--text--shade-1);
flex: 1;
padding-top: 1px;
font-size: var(--font-size--sm);
line-height: 1;
color: var(--color--text--shade-1);
cursor: inherit;
&[data-disabled] {
color: var(--color--text--tint-1);
}
@@ -237,7 +237,7 @@ const {
align-self: center;
padding: 2px;
border-radius: var(--radius--sm);
margin: 7px 12px 0 5px;
margin: 0 var(--spacing--xs) 0 var(--spacing--3xs);
}
.iconButton {
@@ -558,7 +558,7 @@ watch(connectionType, () => {
border: 1px solid var(--color--foreground--tint-1);
}
label {
> label {
display: inline-block;
padding: 0 0 var(--spacing--2xs);
font-size: var(--font-size--sm);