feat(web): en los campos de lista con nombre el código es un casillero corto y el nombre ocupa el resto, alineados en todas las filas

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 18:55:13 -05:00
1 parent 9e98160d01
commit 0fdf10d7b2
1 file changed
+3 -3
+3 -3
View File
@@ -41,6 +41,7 @@ const NAMES = new Map<string, string>();
> >
<sbo-input <sbo-input
#box #box
[width]="lookup().nameKey ? '96px' : undefined"
[value]="shown()" [value]="shown()"
(valueChange)="typing($event)" (valueChange)="typing($event)"
[readonly]="readOnly()" [readonly]="readOnly()"
@@ -59,8 +60,8 @@ const NAMES = new Map<string, string>();
> >
… …
</button> </button>
@if (name()) { @if (lookup().nameKey) {
<span class="name" [attr.title]="name()">{{ name() }}</span> <sbo-input readonly [attr.title]="name()" [ariaLabel]="'Nombre de ' + label()" [value]="name()" />
} }
</sbo-field> </sbo-field>
<sbo-value-help <sbo-value-help
@@ -78,7 +79,6 @@ const NAMES = new Map<string, string>();
`, `,
styles: ` styles: `
:host { display: block; } :host { display: block; }
.name { align-self: center; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--quiet); }
`, `,
}) })
export class LookupField extends FieldBase { export class LookupField extends FieldBase {