From 597f5b075e87f6d385a1412d575d34a235230fb3 Mon Sep 17 00:00:00 2001 From: Dean Farrell Date: Fri, 1 Nov 2024 13:29:43 -0400 Subject: [PATCH] Add a jump to download button (#1827) * Add a jump to download button * Fix spacing issues with jump button * Fix spacing of reset button and search box for file list --- static/css/cdrui_styles.css | 1 - static/css/sass/cdr_ui_styles.scss | 6 ++++- .../full_record/aggregateRecord.vue | 25 ++++++++++++++++++- .../tests/unit/aggregateRecord.spec.js | 6 +++-- 4 files changed, 33 insertions(+), 5 deletions(-) diff --git a/static/css/cdrui_styles.css b/static/css/cdrui_styles.css index 45ea8cfe65..8498759fdc 100644 --- a/static/css/cdrui_styles.css +++ b/static/css/cdrui_styles.css @@ -52,7 +52,6 @@ .thumbnail { display: block; position:relative; - float: left; margin: 0 0 20px 0; text-align: center; object-fit: contain; diff --git a/static/css/sass/cdr_ui_styles.scss b/static/css/sass/cdr_ui_styles.scss index dc4f6185e1..db723669a0 100644 --- a/static/css/sass/cdr_ui_styles.scss +++ b/static/css/sass/cdr_ui_styles.scss @@ -420,6 +420,7 @@ p.no-search-results { #child-files_filter { margin-bottom: 25px; + margin-top: -50px; } .input::placeholder, .input { @@ -609,7 +610,6 @@ img.data-thumb { .full_record_top { border-bottom: 1px solid $light-gray; - padding-bottom: 25px; .collinfo { width: 100%; @@ -1052,6 +1052,10 @@ a.navbar-item:hover { } } + #child-files_filter { + margin-top: -25px; + } + .dataTables_wrapper { .dataTables_filter { float: left !important; diff --git a/static/js/vue-cdr-access/src/components/full_record/aggregateRecord.vue b/static/js/vue-cdr-access/src/components/full_record/aggregateRecord.vue index 62ecbefbfd..e6b9eab9c9 100644 --- a/static/js/vue-cdr-access/src/components/full_record/aggregateRecord.vue +++ b/static/js/vue-cdr-access/src/components/full_record/aggregateRecord.vue @@ -9,6 +9,11 @@
- + + diff --git a/static/js/vue-cdr-access/tests/unit/aggregateRecord.spec.js b/static/js/vue-cdr-access/tests/unit/aggregateRecord.spec.js index 0bd10798d5..1f38a3bc03 100644 --- a/static/js/vue-cdr-access/tests/unit/aggregateRecord.spec.js +++ b/static/js/vue-cdr-access/tests/unit/aggregateRecord.spec.js @@ -178,7 +178,6 @@ const record = { title: "fc77a9be-b49d-4f4e-b656-1644c9e964fc" } ], - _version_: 1760531096505680000, permissions: [ "markForDeletionUnit", "move", @@ -283,7 +282,6 @@ const record = { title: "fc77a9be-b49d-4f4e-b656-1644c9e964fc" } ], - _version_: 1760531096497291300, permissions: [ "markForDeletionUnit", "move", @@ -583,6 +581,10 @@ describe('aggregateRecord.vue', () => { expect(wrapper.find('h2').text()).toEqual('Listen for real'); }); + it("has a jump to download button", () => { + expect(wrapper.find('.download-jump a').exists()).toBe(true); + }); + it("does not display a finding aid link, if absent", () => { expect(wrapper.find('.finding-aid').exists()).toBe(false); });