From 2c03bd213aacf5d36b003f5d39bd076c5d8e84b9 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sat, 11 Jan 2025 18:39:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=94=AF=E5=8F=8A=E5=88=86=E6=94=AF?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8C=89=E9=92=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 5 +++- src/actions.scss | 14 ++++++++++- src/dropdown.scss | 58 +++++++++++++++++++++++++++++++--------------- 3 files changed, 56 insertions(+), 21 deletions(-) diff --git a/.github/release.md b/.github/release.md index 65227b5..6bcc706 100644 --- a/.github/release.md +++ b/.github/release.md @@ -1,3 +1,6 @@ 工作流禁用标签颜色和位置优化 微调侧边栏元素的间隔以更符合 Github -调整发布页左侧栏以更符合 Github \ No newline at end of file +调整发布页左侧栏以更符合 Github +手动工作流分支按钮优化 +仓库分支下拉菜单优化 +下拉菜单按钮优化 \ No newline at end of file diff --git a/src/actions.scss b/src/actions.scss index 78a58a8..e59d2ac 100644 --- a/src/actions.scss +++ b/src/actions.scss @@ -1,5 +1,5 @@ // Made by Luting ^-^ -// 禁用工作流标签 +// 工作流禁用标签 .ui.vertical.menu .item > .ui.red.label { color: var(--color-error-text); border: 1px solid var(--color-error-border); @@ -7,6 +7,18 @@ margin-top: 0.5px; } +// 手动工作流下拉列表 +#runWorkflowDispatchForm { + // 分支选择按钮 + .ui.dropdown.button.branch-selector-dropdown { + padding: 8px 24px 8px 8px; + + svg.octicon-git-branch { + margin-right: 6px; + } + } +} + .job-step-summary { color: var(--color-console-fg-subtle); } diff --git a/src/dropdown.scss b/src/dropdown.scss index ee8641b..09aa2bf 100644 --- a/src/dropdown.scss +++ b/src/dropdown.scss @@ -111,6 +111,8 @@ .ui.dropdown > .visible.menu .scrolling.menu, .ui.button.dropdown .menu { .item { + display: flex; + align-items: center; border-radius: var(--border-radius); margin: 0 8px; @@ -126,32 +128,50 @@ } } -// 分支菜单下划线 -.ui.dropdown > .visible.menu .scrolling.menu .item { - &:before { - content: ' '; - display: block; - position: absolute; - width: 100%; - top: 0px; - left: 0px; - border-width: 1px 0px 0px; - border-style: solid; - border-image: initial; - border-color: #3d444db3; +.ui.dropdown.branch-selector-dropdown > .visible.menu { + // 仓库分支列表下查看操作按钮 + > .item { + display: flex; + align-items: center; + border-radius: var(--border-radius); + margin: 8px; + padding: 6px 8px !important; } - &:first-of-type:before { - border-color: transparent; - } + .scrolling.menu .item { + padding: 6px 0px 6px 16px !important; - &:hover { + // 分支菜单下划线 &:before { + content: ' '; + display: block; + position: absolute; + width: 100%; + top: 0px; + left: 0px; + border-width: 1px 0px 0px; + border-style: solid; + border-image: initial; + border-color: #3d444db3; + } + + &:first-of-type:before { border-color: transparent; } - + :before { - border-color: transparent; + &:hover { + &:before { + border-color: transparent; + } + + + :before { + border-color: transparent; + } + } + + .ui.label { + margin-top: 1px; + margin-left: auto; } } }