Skip to content

Commit 5552cd2

Browse files
committed
fix: Sticky columns start side works now
1 parent 3ca20f1 commit 5552cd2

File tree

9 files changed

+1824
-153
lines changed

9 files changed

+1824
-153
lines changed

pages/table/grouped-column-demo.page.tsx

Lines changed: 534 additions & 0 deletions
Large diffs are not rendered by default.

pages/table/grouped-column-with-preference.page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,21 @@ const columnDefinitions: TableProps<Instance>['columnDefinitions'] = [
113113
cell: (item: Instance) => item.id,
114114
sortingField: 'id',
115115
isRowHeader: true,
116+
minWidth: 350,
116117
},
117118
{
118119
id: 'name',
119120
header: 'Name',
120121
cell: (item: Instance) => item.name,
121122
sortingField: 'name',
123+
minWidth: 250,
122124
},
123125
{
124126
id: 'cpuUtilization',
125127
header: 'CPU (%)',
126128
cell: (item: Instance) => `${item.cpuUtilization.toFixed(1)}%`,
127129
sortingField: 'cpuUtilization',
130+
minWidth: 150,
128131
},
129132
{
130133
id: 'memoryUtilization',
@@ -251,8 +254,6 @@ export default function TableDemo() {
251254
const [preferences, setPreferences] = useState<CollectionPreferencesProps['preferences']>({
252255
pageSize: 10,
253256
contentDisplay: [
254-
{ id: 'id', visible: true },
255-
{ id: 'name', visible: true },
256257
{
257258
type: 'group',
258259
id: 'metrics',
@@ -278,6 +279,8 @@ export default function TableDemo() {
278279
},
279280
],
280281
},
282+
{ id: 'id', visible: true },
283+
{ id: 'name', visible: true },
281284
{
282285
type: 'group',
283286
id: 'configuration',

0 commit comments

Comments
 (0)