Skip to content

Commit 0a6d9ad

Browse files
fix(table): corrige truncamento e tooltip duplicado em colunas label
A coluna com tipo 'label' respeita o tamanho natural do componente 'po-tag' evitando truncamento do conteúdo e previne tooltip duplicado. Fixes DTHFUI-11180
1 parent ecd0bd5 commit 0a6d9ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

projects/ui/src/lib/components/po-table/po-table.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@
401401
@for (column of mainColumns; track trackBy(columnIndex); let columnIndex = $index) {
402402
<td
403403
[style.width]="column.width"
404-
[style.max-width]="column.width"
405-
[style.min-width]="column.width"
404+
[style.max-width]="column.type === 'label' && column.width ? null : column.width"
405+
[style.min-width]="column.type === 'label' && !column.width ? 'max-content' : column.width"
406406
[class.po-table-column]="column.type !== 'icon'"
407407
[class.po-table-column-right]="column.type === 'currency' || column.type === 'number'"
408408
[class.po-table-column-center]="column.type === 'subtitle'"
@@ -781,8 +781,8 @@
781781
@for (column of mainColumns; track trackBy(columnIndex); let columnIndex = $index) {
782782
<td
783783
[style.width]="column.width"
784-
[style.max-width]="column.width"
785-
[style.min-width]="column.width"
784+
[style.max-width]="column.type === 'label' && column.width ? null : column.width"
785+
[style.min-width]="column.type === 'label' && !column.width ? 'max-content' : column.width"
786786
[class.po-table-column]="column.type !== 'icon'"
787787
[class.po-table-column-right]="column.type === 'currency' || column.type === 'number'"
788788
[class.po-table-column-center]="column.type === 'subtitle'"

0 commit comments

Comments
 (0)