Skip to content

Commit

Permalink
fix(table): table and ag-grid visual alignments (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and GitHub Enterprise committed Mar 5, 2024
1 parent ebf1c82 commit f9e0c83
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.nx-table--reorder {
cursor: move;
}

.cdk-drag-preview {
box-sizing: border-box;
border-radius: 4px;
background-color: var(--ui-01);
box-shadow: 0 0 24px 0 rgba(65, 65, 65, 0.35);
}

.cdk-drag-placeholder {
opacity: 0;
border: 0;
}

.cdk-drag-animating {
Expand All @@ -17,7 +18,7 @@
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
.col {
cursor: grab;
cursor: default;
}
.scroll-container {
overflow-x: auto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table nxTable>
<table nxTable class="nx-table--reorder">
<thead>
<tr
nxTableRow
Expand All @@ -11,15 +11,16 @@
nxHeaderCell
cdkDrag
cdkDragLockAxis="x"
class="col"
>
{{h.title}}
</th>
</tr>
</thead>
<tbody>
<tr nxTableRow *ngFor="let item of content">
<td nxTableCell *ngFor="let h of header">{{item[h.field]}}</td>
<td nxTableCell *ngFor="let h of header" class="col">
{{item[h.field]}}
</td>
</tr>
</tbody>
</table>
5 changes: 5 additions & 0 deletions projects/ng-aquila/src/ag-grid/ag-theme-aquila.scss
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,8 @@ $icon-mapping: (
--ag-odd-row-background-color: var(--zebra-table-even-row-background-color);
--ag-row-border-style: none;
}

.ag-dnd-ghost {
box-shadow: 0 0 24px 0 rgba(65, 65, 65, 0.35);
border: 0;
}

0 comments on commit f9e0c83

Please sign in to comment.