Skip to content

Commit 5fd192c

Browse files
authored
Merge pull request #1242 from NASA-IMPACT/1196-arrange-the-show-100-csv-customize-columns-boxes-to-be-in-one-line-on-the-delta-urls-page
Alignment of ‘Show 100’, ‘CSV’, ‘CUSTOMIZE COLUMNS’
2 parents a00c38c + 6878c42 commit 5fd192c

File tree

3 files changed

+40
-9
lines changed

3 files changed

+40
-9
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ For each PR made, an entry should be added to this changelog. It should contain
114114
- Added `escapeHtml` function in the `delta_url_list.js` file to handle special character escaping correctly.
115115
- Called this function while retrieving the titles in `getGeneratedTitleColumn()` and `getCuratedGeneratedTitleColumn()` functions.
116116

117+
- 1196-arrange-the-show-100-csv-customize-columns-boxes-to-be-in-one-line-on-the-delta-urls-page
118+
changelog-update-Issue-1001
119+
- Description: Formatting the buttons - 'Show 100','CSV' and 'Customize Columns' to be on a single line for an optimal use of space.
120+
- Changes:
121+
- Updated delta_url_list.css and delta_url_list.js files with necessary modifications
122+
117123
- 1246-minor-enhancement-document-type-pattern-form-require-document-type-or-show-appropriate-error
118124
- Description: In the Document Type Pattern Form, if the user does not select a Document Type while filling out the form, an appropriate error message is displayed.
119125
- Changes:

sde_indexing_helper/static/css/delta_url_list.css

+28-5
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@
211211
}
212212

213213
.modalFooter {
214-
position: sticky;
215-
bottom: 0;
216214
position: sticky;
217215
bottom: 0;
218216
padding: 10px 0;
@@ -255,8 +253,6 @@
255253
font-weight: 500;
256254
}
257255

258-
259-
260256
.custom-select,
261257
.buttons-csv,
262258
.customizeColumns,
@@ -440,7 +436,6 @@ div.dt-buttons .btn.processing:after {
440436
}
441437

442438

443-
/* pagination position */
444439
div.dt-container div.dt-paging ul.pagination {
445440
position: absolute;
446441
right: 60px;
@@ -451,3 +446,31 @@ div.dt-container div.dt-paging ul.pagination {
451446
max-width: 100%;
452447
min-width: 100%;
453448
}
449+
450+
#delta_urls_table_wrapper .col-md {
451+
display: flex;
452+
justify-content: space-between;
453+
align-items: center;
454+
grid-auto-flow: row;
455+
position: relative;
456+
457+
.dt-info {
458+
position:absolute;
459+
left: 130px;
460+
top: 5px;
461+
}
462+
}
463+
464+
#curated_urls_table_wrapper .col-md {
465+
display: flex;
466+
justify-content: space-between;
467+
align-items: center;
468+
grid-auto-flow: row;
469+
position: relative;
470+
471+
.dt-info {
472+
position:absolute;
473+
left: 130px;
474+
top: 5px;
475+
}
476+
}

sde_indexing_helper/static/js/delta_url_list.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,15 @@ function initializeDataTable() {
114114
layout: {
115115
bottomEnd: "inputPaging",
116116
topEnd: null,
117-
topStart: {
118-
info: true,
117+
topStart: null,
118+
top: {
119119
pageLength: {
120120
menu: [
121121
[25, 50, 100, 500],
122122
["Show 25", "Show 50", "Show 100", "Show 500"],
123123
],
124124
},
125+
info:true,
125126
buttons: [
126127
{
127128
extend: "csv",
@@ -332,14 +333,15 @@ function initializeDataTable() {
332333
layout: {
333334
bottomEnd: "inputPaging",
334335
topEnd: null,
335-
topStart: {
336-
info: true,
336+
topStart: null,
337+
top: {
337338
pageLength: {
338339
menu: [
339340
[25, 50, 100, 500],
340341
["Show 25", "Show 50", "Show 100", "Show 500"],
341342
],
342343
},
344+
info:true,
343345
buttons: [
344346
{
345347
extend: "csv",

0 commit comments

Comments
 (0)