Feature/set actions columns of tables to stick at end (#2726)

* Set up stickyEnd in actions columns

* Update changelog
pull/2730/head^2
Thomas Kaul 12 months ago committed by GitHub
parent 8d80e840b8
commit 4f9a5f0340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Set the actions columns of various tables to stick at the end
- Increased the height of the tabs on mobile - Increased the height of the tabs on mobile
- Improved the language localization for German (`de`) - Improved the language localization for German (`de`)
- Improved the language localization for Türkçe (`tr`) - Improved the language localization for Türkçe (`tr`)

@ -37,7 +37,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" mat-header-cell></th> <th *matHeaderCellDef class="px-1 text-center" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>

@ -241,7 +241,7 @@
></td> ></td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" i18n mat-header-cell></th> <th *matHeaderCellDef class="px-1 text-center" i18n mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>
<button <button

@ -120,7 +120,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell> <th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
<button <button
class="mx-1 no-min-width px-2" class="mx-1 no-min-width px-2"

@ -129,7 +129,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" mat-header-cell> <th *matHeaderCellDef class="px-1 text-center" mat-header-cell>
<button <button
class="mx-1 no-min-width px-2" class="mx-1 no-min-width px-2"

@ -68,7 +68,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th <th
*matHeaderCellDef *matHeaderCellDef
class="px-1 text-center" class="px-1 text-center"

@ -48,7 +48,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th <th
*matHeaderCellDef *matHeaderCellDef
class="px-1 text-center" class="px-1 text-center"

@ -178,7 +178,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th <th
*matHeaderCellDef *matHeaderCellDef
class="mat-mdc-header-cell px-1 py-2" class="mat-mdc-header-cell px-1 py-2"

@ -1,5 +1,5 @@
@mixin gf-table($darkTheme: false) { @mixin gf-table($darkTheme: false) {
background: transparent !important; --mat-table-background-color: var(--light-background);
.mat-footer-row, .mat-footer-row,
.mat-row { .mat-row {
@ -21,29 +21,17 @@
.mat-mdc-row { .mat-mdc-row {
&:nth-child(even) { &:nth-child(even) {
background-color: rgba(var(--palette-foreground-base), 0.02); background-color: whitesmoke;
} }
&:hover { &:hover {
background-color: rgba(var(--palette-foreground-base), 0.05) !important; background-color: #e6e6e6 !important;
}
.mat-mdc-cell {
background: none;
}
}
.mat-row {
&:nth-child(even) {
background-color: rgba(var(--palette-foreground-base), 0.02);
}
&:hover {
background-color: rgba(var(--palette-foreground-base), 0.05);
} }
} }
@if $darkTheme { @if $darkTheme {
--mat-table-background-color: var(--dark-background);
.mat-mdc-footer-row { .mat-mdc-footer-row {
.mat-mdc-footer-cell { .mat-mdc-footer-cell {
border-top-color: rgba( border-top-color: rgba(
@ -55,28 +43,11 @@
.mat-mdc-row { .mat-mdc-row {
&:nth-child(even) { &:nth-child(even) {
background-color: rgba(var(--palette-foreground-base-dark), 0.02); background-color: #222222;
}
&:hover {
background-color: rgba(
var(--palette-foreground-base-dark),
0.05
) !important;
}
.mat-mdc-cell {
background: none;
}
}
.mat-row {
&:nth-child(even) {
background-color: rgba(var(--palette-foreground-base-dark), 0.02);
} }
&:hover { &:hover {
background-color: rgba(var(--palette-foreground-base-dark), 0.05); background-color: #303030 !important;
} }
} }
} }

@ -31,7 +31,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" mat-header-cell></th> <th *matHeaderCellDef class="px-1 text-center" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>
<button <button

@ -428,7 +428,7 @@
></td> ></td>
</ng-container> </ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" mat-header-cell> <th *matHeaderCellDef class="px-1 text-center" mat-header-cell>
<button <button
*ngIf=" *ngIf="

Loading…
Cancel
Save