Skip to content

Commit

Permalink
Merge pull request #659 from SSWConsulting/compare-scans-alignment
Browse files Browse the repository at this point in the history
Align heights on Compare Scans page
  • Loading branch information
zacharykeeping committed Sep 21, 2023
2 parents 416cb6c + 76fe3de commit b3aad22
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ui/src/containers/ScanCompare.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
}
</script>

<style>
.select-scan {
border: none;
height: 27px;
}
</style>

{#if loading}
<LoadingFlat />
{:else}
Expand All @@ -65,12 +72,11 @@
<div class="grid grid-cols-7 text-left my-8">
<div class="col-start-2 col-span-2 border-black border border-opacity-25 hover:border-opacity-50 rounded px-4">
<div class="text-lg textgrey mb-2 mt-4">Select past scan to compare:</div>
<div>
<div class="text-lg">
<select
bind:value={selectedScan}
on:change={() => getDifferences()}
class="mb-4 textgrey text-lg font-sans font-bold cursor-pointer"
style="border: none"
class="mb-4 p-0 textgrey text-lg font-sans font-bold cursor-pointer select-scan"
>
{#each allScans.slice(1) as scan}
<option value={scan}>
Expand All @@ -93,7 +99,7 @@
<div
on:click={() => navigateTo(`/build/${allScans[0].runId}`)}
on:keydown={undefined}
class="font-sans font-bold text-lg textgrey mb-4 cursor-pointer">
class="font-sans font-bold text-lg textgrey mb-4 p-0 cursor-pointer">
{
allScans.length > 0
? `${format(new Date(allScans[0].buildDate), "dd LLL y")} at ${format(new Date(allScans[0].buildDate), "h:mm bbb")}`
Expand Down

0 comments on commit b3aad22

Please sign in to comment.