@inchurch/matcha-theme 22.5.0 → 22.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -294,25 +294,21 @@
294
294
  &.col-id { width: var(--matcha-table-col-id-width); }
295
295
  &.col-narrow { width: var(--matcha-table-col-narrow-width); }
296
296
  &.col-medium { width: var(--matcha-table-col-medium-width); }
297
- // Actions / icon-buttons — shrink-to-content (1% truque de table layout).
298
- // Children inline horizontal right-aligned (canon Figma: edit/delete lado a
299
- // lado, não stackados).
297
+ // Actions / icon-buttons — pinada em --matcha-table-col-actions-width (80px).
298
+ // Children inline-flex, centralizados (título "Ações" no header também
299
+ // centraliza text-align: center vale pro conteúdo das duas linhas).
300
300
  //
301
301
  // Importante: `.matcha-button` tem `display: flex` (block-level) que faria
302
302
  // os icon-buttons empilharem verticalmente. Override via selector descendant
303
303
  // com specificity maior pra forçar inline-flex no contexto de actions cell.
304
- //
305
- // Padding-right ZERO no body — icon-button já tem click target padding
306
- // interno; somar padding ao td empurraria os botões pra ESQUERDA do edge
307
- // do header "Ações". Alinhamento perfeito: button box-right = cell-right.
308
- // Actions / icon-buttons — shrink-to-content (1% truque de table layout).
309
- // Children inline horizontal LEFT-aligned (header text "Ações" alinha
310
- // naturalmente acima do primeiro ícone). Padding uniforme L/R com resto
311
- // da table.
312
304
  &.col-actions {
313
305
  width: var(--matcha-table-col-actions-width);
306
+ // min-width base da tbody td/thead th é 120px (--matcha-table-cell-min-width)
307
+ // — maior que os 80px daqui, e min-width sempre vence sobre width no box
308
+ // model. Sem este override, a coluna ficava presa em 120px (achado real).
309
+ min-width: var(--matcha-table-col-actions-width);
314
310
  white-space: nowrap;
315
- text-align: left;
311
+ text-align: center;
316
312
 
317
313
  > .matcha-button,
318
314
  > button[matcha-icon-button],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inchurch/matcha-theme",
3
- "version": "22.5.0",
3
+ "version": "22.5.2",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {