From e0db44ce2b8f6c5f27e71814f41fb792f54c4a5e Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Thu, 26 Sep 2024 11:55:25 -0400 Subject: [PATCH] Match styling from other page titles and get above z-index of the timeline --- ui/app/styles/components/timeline.scss | 9 ++++ ui/app/templates/jobs/job/versions.hbs | 58 +++++++++++++------------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/ui/app/styles/components/timeline.scss b/ui/app/styles/components/timeline.scss index 89908d66693..50536c60544 100644 --- a/ui/app/styles/components/timeline.scss +++ b/ui/app/styles/components/timeline.scss @@ -138,3 +138,12 @@ } } } + +.versions-page-header { + z-index: $z-base + 1; + margin-bottom: 2rem; + + .hds-page-header__main { + flex-direction: unset; + } +} diff --git a/ui/app/templates/jobs/job/versions.hbs b/ui/app/templates/jobs/job/versions.hbs index 044fc9ab153..1e89cc653d9 100644 --- a/ui/app/templates/jobs/job/versions.hbs +++ b/ui/app/templates/jobs/job/versions.hbs @@ -7,40 +7,38 @@
- + - - - + + + + previous version + + {{#each this.optionsDiff key="label" as |option|}} - previous version + {{on "change" (action this.setDiffVersion + option.value + )}} + @value={{option.label}} + checked={{eq this.diffVersion option.value}} + data-test-dropdown-option={{option.label}} + > + {{option.label}} - {{#each this.optionsDiff key="label" as |option|}} - - {{option.label}} - - {{else}} - - No versions - - {{/each}} - - + {{else}} + + No versions + + {{/each}} +