Skip to content

Commit c85b8ef

Browse files
committed
remove table columns gap
1 parent cf7b95f commit c85b8ef

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

website/src/components/api/PropertyTable/styles.module.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
.tableWrapper {
2121
position: relative;
2222
width: 100%;
23+
max-width: 100%;
2324
border: 1px solid var(--ifm-color-emphasis-200);
2425
border-radius: 0.5rem;
2526
background: var(--ifm-background-surface-color);
@@ -38,6 +39,7 @@
3839
-webkit-overflow-scrolling: touch;
3940
scrollbar-width: thin;
4041
scrollbar-color: var(--ifm-color-emphasis-300) transparent;
42+
max-width: 100%;
4143
}
4244

4345
/* Custom Scrollbar */
@@ -69,9 +71,10 @@
6971
/* Table */
7072
.table {
7173
width: 100%;
74+
max-width: 100%;
7275
border-collapse: separate;
7376
border-spacing: 0;
74-
min-width: 640px;
77+
table-layout: auto;
7578
}
7679

7780
/* Table Header */
@@ -162,22 +165,26 @@
162165

163166
/* Column Styles */
164167
.nameColumn {
165-
width: 20%;
166-
min-width: 180px;
168+
width: auto;
169+
min-width: 120px;
170+
max-width: 25%;
167171
}
168172

169173
.typeColumn {
170-
width: 15%;
171-
min-width: 140px;
174+
width: auto;
175+
min-width: 100px;
176+
max-width: 20%;
172177
}
173178

174179
.requiredColumn {
175-
width: 12%;
176-
min-width: 100px;
180+
width: auto;
181+
min-width: 80px;
182+
max-width: 15%;
177183
}
178184

179185
.descriptionColumn {
180-
width: auto;
186+
width: 1%; /* Small width forces expansion to fill remaining space in auto layout */
187+
min-width: 200px;
181188
}
182189

183190
/* Name Cell */
@@ -272,6 +279,8 @@
272279
.descriptionCell {
273280
line-height: 1.6;
274281
color: var(--ifm-color-emphasis-700);
282+
width: 100%; /* Ensure cell expands to fill column width */
283+
min-width: 0; /* Allow shrinking if needed, but column width will enforce expansion */
275284
}
276285

277286
[data-theme='dark'] .descriptionCell {

0 commit comments

Comments
 (0)