jupyterlab_tabular_data_viewer_extension 1.2.30 → 1.2.34
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.
- package/lib/widget.js +4 -0
- package/package.json +1 -1
- package/src/widget.ts +5 -0
- package/style/base.css +3 -2
package/lib/widget.js
CHANGED
|
@@ -593,6 +593,10 @@ export class TabularDataViewer extends Widget {
|
|
|
593
593
|
headers.forEach(header => {
|
|
594
594
|
const columnName = header.dataset.columnName;
|
|
595
595
|
const indicator = header.querySelector('.jp-TabularDataViewer-sortIndicator');
|
|
596
|
+
// Skip if no indicator (e.g., row number column)
|
|
597
|
+
if (!indicator) {
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
596
600
|
if (columnName === this._sortBy) {
|
|
597
601
|
indicator.textContent = this._sortOrder === 'asc' ? ' ▲' : ' ▼';
|
|
598
602
|
}
|
package/package.json
CHANGED
package/src/widget.ts
CHANGED
|
@@ -728,6 +728,11 @@ export class TabularDataViewer extends Widget {
|
|
|
728
728
|
const columnName = header.dataset.columnName;
|
|
729
729
|
const indicator = header.querySelector('.jp-TabularDataViewer-sortIndicator') as HTMLElement;
|
|
730
730
|
|
|
731
|
+
// Skip if no indicator (e.g., row number column)
|
|
732
|
+
if (!indicator) {
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
|
|
731
736
|
if (columnName === this._sortBy) {
|
|
732
737
|
indicator.textContent = this._sortOrder === 'asc' ? ' ▲' : ' ▼';
|
|
733
738
|
} else {
|
package/style/base.css
CHANGED
|
@@ -133,12 +133,13 @@
|
|
|
133
133
|
.jp-TabularDataViewer-resizeHandle {
|
|
134
134
|
position: absolute;
|
|
135
135
|
top: 0;
|
|
136
|
-
right: -
|
|
137
|
-
width:
|
|
136
|
+
right: -8px;
|
|
137
|
+
width: 16px;
|
|
138
138
|
height: 100%;
|
|
139
139
|
cursor: col-resize;
|
|
140
140
|
z-index: 100;
|
|
141
141
|
background: transparent;
|
|
142
|
+
pointer-events: auto;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
/* Table Body */
|