From 00595c55851de1981990395da66dfde5625e4c09 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 20 Nov 2024 22:49:35 +0100 Subject: [PATCH] Add icons to all pipeline tabs --- web/src/components/atomic/Icon.vue | 15 ++++++++++++++- web/src/components/layout/scaffold/Tabs.vue | 4 ++-- web/src/views/repo/pipeline/PipelineWrapper.vue | 8 ++++---- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/web/src/components/atomic/Icon.vue b/web/src/components/atomic/Icon.vue index eda7c10ae..7569195e5 100644 --- a/web/src/components/atomic/Icon.vue +++ b/web/src/components/atomic/Icon.vue @@ -51,6 +51,10 @@ + + + + @@ -96,12 +100,16 @@ import { mdiDownload, mdiDownloadCircle, mdiDownloadOff, + mdiFileAlertOutline, + mdiFileCogOutline, mdiFormatListBulleted, mdiGestureTap, mdiGit, mdiGithub, mdiGitlab, mdiHelpCircleOutline, + mdiMagnifyScan, + mdiMinusCircle, mdiMinusCircleOutline, mdiPackageVariant, mdiPause, @@ -120,6 +128,7 @@ import { mdiTagOutline, mdiTimelapse, mdiTrashCanOutline, + mdiTrayFull, } from '@mdi/js'; import { siForgejo, siGitea } from 'simple-icons'; @@ -176,7 +185,11 @@ export type IconNames = | 'attention' | 'spinner' | 'error' - | 'remove'; + | 'remove' + | 'tray-full' + | 'file-cog-outlined' + | 'magnify-scan' + | 'file-alert-outline'; defineProps<{ name: IconNames; diff --git a/web/src/components/layout/scaffold/Tabs.vue b/web/src/components/layout/scaffold/Tabs.vue index 78f821557..cfe22fa90 100644 --- a/web/src/components/layout/scaffold/Tabs.vue +++ b/web/src/components/layout/scaffold/Tabs.vue @@ -5,14 +5,14 @@ :key="tab.title" v-slot="{ isActive, isExactActive }" :to="tab.to" - class="border-transparent w-full py-1 md:py-2 md:w-auto md:px-6 flex cursor-pointer md:border-b-2 text-wp-text-100 hover:text-wp-text-200 items-center" + class="border-transparent w-full py-1 md:py-2 md:w-auto md:px-4 flex cursor-pointer md:border-b-2 text-wp-text-100 hover:text-wp-text-200 items-center" :active-class="tab.matchChildren ? '!border-wp-text-100' : ''" :exact-active-class="tab.matchChildren ? '' : '!border-wp-text-100'" > - + {{ tab.title }} diff --git a/web/src/views/repo/pipeline/PipelineWrapper.vue b/web/src/views/repo/pipeline/PipelineWrapper.vue index 7f6ea29ec..bcc52a839 100644 --- a/web/src/views/repo/pipeline/PipelineWrapper.vue +++ b/web/src/views/repo/pipeline/PipelineWrapper.vue @@ -73,16 +73,15 @@ - + - +