@main-class/template 1.23.3 → 1.23.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/theming.scss +23 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@main-class/template",
3
- "version": "1.23.3",
3
+ "version": "1.23.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~11.2.7",
6
6
  "@angular/core": "~11.2.7",
package/theming.scss CHANGED
@@ -185,7 +185,7 @@
185
185
  font-size: 13px;
186
186
  }
187
187
 
188
- th {
188
+ th, th.mat-header-cell {
189
189
  padding: 12px 16px;
190
190
  text-align: left;
191
191
  font-weight: 600;
@@ -198,12 +198,26 @@
198
198
  white-space: nowrap;
199
199
  }
200
200
 
201
- td {
201
+ td, td.mat-cell, td.mat-footer-cell {
202
202
  padding: 12px 16px;
203
203
  border-bottom: 1px solid var(--lib-color-outline-variant);
204
204
  transition: background-color var(--mcl-transition);
205
205
  }
206
206
 
207
+ /* vence o padding lateral de 24px que o Material aplica na
208
+ primeira/última coluna */
209
+ th.mat-header-cell:first-of-type,
210
+ td.mat-cell:first-of-type,
211
+ td.mat-footer-cell:first-of-type {
212
+ padding-left: 16px;
213
+ }
214
+
215
+ th.mat-header-cell:last-of-type,
216
+ td.mat-cell:last-of-type,
217
+ td.mat-footer-cell:last-of-type {
218
+ padding-right: 16px;
219
+ }
220
+
207
221
  &:hover td {
208
222
  background-color: rgba(0, 0, 0, .03);
209
223
 
@@ -373,6 +387,13 @@
373
387
  .spacer {
374
388
  flex: 1;
375
389
  }
390
+
391
+ /* Tabelas no mobile: células sem quebra de linha — o conteúdo
392
+ rola horizontalmente dentro do .table-scroll em vez de esmagar */
393
+ .table-scroll th,
394
+ .table-scroll td {
395
+ white-space: nowrap;
396
+ }
376
397
  }
377
398
 
378
399
  a, a:active {