Skip to content

Commit 870c009

Browse files
author
John M. Horan
committed
Minor edits to CSS and button order #91
Signed-off-by: John M. Horan <[email protected]>
1 parent 6a4fa3c commit 870c009

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

assets/css/main.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,17 @@ div.dataTables_scrollHead th:first-child {
242242
border-top-left-radius: 4px;
243243
}
244244

245+
/* Modify the colvis column-visibility and -grouping buttons */
246+
.buttons-colvis {
247+
padding-right: 10px;
248+
padding-left: 10px;
249+
}
250+
251+
.buttons-colvisGroup {
252+
padding-right: 10px;
253+
padding-left: 10px;
254+
}
255+
245256
/*---------------------------------------
246257
Help page
247258
-----------------------------------------*/
@@ -366,15 +377,4 @@ div.dataTables_scrollHead th:first-child {
366377
padding: 14px;
367378
text-align: center;
368379
color: #ffffff;
369-
}
370-
371-
/* Modify the colvis column-visibility and -grouping buttons */
372-
.buttons-colvis {
373-
padding-right: 10px;
374-
padding-left: 10px;
375-
}
376-
377-
.buttons-colvisGroup {
378-
padding-right: 10px;
379-
padding-left: 10px;
380380
}

assets/js/aboutCodeDataTables.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -237,23 +237,18 @@ class AboutCodeDataTable {
237237
collectionLayout: "fixed two-column"
238238
},
239239
{
240-
// Show only copyright columns
241240
extend: "colvisGroup",
242-
text: "Copyright info",
243-
show: AboutCodeDataTable.COPYRIGHT_GROUP
244-
.map((column) => `${column.name}:name`),
245-
hide: AboutCodeDataTable.TABLE_COLUMNS
246-
.filter((column) => AboutCodeDataTable.COPYRIGHT_GROUP.indexOf(column) < 0)
247-
.map((column) => `${column.name}:name`)
241+
text: "Show all",
242+
show: ":hidden"
248243
},
249244
{
250-
// Show only license columns
245+
// Hide all columns except Path
251246
extend: "colvisGroup",
252-
text: "License info",
253-
show: AboutCodeDataTable.LICENSE_GROUP
247+
text: "Hide all",
248+
show: AboutCodeDataTable.LOCATION_COLUMN
254249
.map((column) => `${column.name}:name`),
255250
hide: AboutCodeDataTable.TABLE_COLUMNS
256-
.filter((column) => AboutCodeDataTable.LICENSE_GROUP.indexOf(column) < 0)
251+
.filter((column) => AboutCodeDataTable.LOCATION_COLUMN.indexOf(column) < 0)
257252
.map((column) => `${column.name}:name`)
258253
},
259254
{
@@ -267,28 +262,33 @@ class AboutCodeDataTable {
267262
.map((column) => `${column.name}:name`)
268263
},
269264
{
270-
// Show only package columns
265+
// Show only copyright columns
271266
extend: "colvisGroup",
272-
text: "Package info",
273-
show: AboutCodeDataTable.PACKAGE_GROUP
267+
text: "Copyright info",
268+
show: AboutCodeDataTable.COPYRIGHT_GROUP
274269
.map((column) => `${column.name}:name`),
275270
hide: AboutCodeDataTable.TABLE_COLUMNS
276-
.filter((column) => AboutCodeDataTable.PACKAGE_GROUP.indexOf(column) < 0)
271+
.filter((column) => AboutCodeDataTable.COPYRIGHT_GROUP.indexOf(column) < 0)
277272
.map((column) => `${column.name}:name`)
278273
},
279274
{
275+
// Show only license columns
280276
extend: "colvisGroup",
281-
text: "Show all",
282-
show: ":hidden"
277+
text: "License info",
278+
show: AboutCodeDataTable.LICENSE_GROUP
279+
.map((column) => `${column.name}:name`),
280+
hide: AboutCodeDataTable.TABLE_COLUMNS
281+
.filter((column) => AboutCodeDataTable.LICENSE_GROUP.indexOf(column) < 0)
282+
.map((column) => `${column.name}:name`)
283283
},
284284
{
285-
// Hide all columns except Path
285+
// Show only package columns
286286
extend: "colvisGroup",
287-
text: "Hide all",
288-
show: AboutCodeDataTable.LOCATION_COLUMN
287+
text: "Package info",
288+
show: AboutCodeDataTable.PACKAGE_GROUP
289289
.map((column) => `${column.name}:name`),
290290
hide: AboutCodeDataTable.TABLE_COLUMNS
291-
.filter((column) => AboutCodeDataTable.LOCATION_COLUMN.indexOf(column) < 0)
291+
.filter((column) => AboutCodeDataTable.PACKAGE_GROUP.indexOf(column) < 0)
292292
.map((column) => `${column.name}:name`)
293293
}
294294
],

0 commit comments

Comments
 (0)