aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/components
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-04-07 23:22:47 +0800
committerGitHub <noreply@github.com>2024-04-07 15:22:47 +0000
commit10d83ae6435134177253569a2f244935c2bb708c (patch)
tree6201c9436f6f102226709a8944453bfca93a387c /web_src/js/components
parentd26ec5f2eb74a6437f998ab0af2ae058a64e06a2 (diff)
downloadgitea-10d83ae6435134177253569a2f244935c2bb708c.tar.gz
gitea-10d83ae6435134177253569a2f244935c2bb708c.zip
Action view mobile improvements and fixes (#30309) (#30320)
Backport #30309 by @silverwind Fix the action issue in https://github.com/go-gitea/gitea/issues/30303, specifically: - Use opaque step header hover background to avoid transparency issue - Un-sticky the `action-view-left` on mobile, it would otherwise overlap into right view - Improve commit summary, let it wrap - Fix and comment z-indexes - Tweak width for run-list-item-right so it wastes less space on desktop - Synced latest changes to console colors from dark to light theme <img width="467" alt="Screenshot 2024-04-06 at 18 58 15" src="https://github.com/go-gitea/gitea/assets/115237/8ad26b72-6cd9-4522-8ad1-6fd86b2d0d53"> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/components')
-rw-r--r--web_src/js/components/RepoActionView.vue28
1 files changed, 22 insertions, 6 deletions
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue
index 75cd1db70a..06c42f0b35 100644
--- a/web_src/js/components/RepoActionView.vue
+++ b/web_src/js/components/RepoActionView.vue
@@ -517,8 +517,16 @@ export function initRepositoryActionView() {
.action-commit-summary {
display: flex;
+ flex-wrap: wrap;
gap: 5px;
- margin: 0 0 0 28px;
+ margin-left: 28px;
+}
+
+@media (max-width: 767.98px) {
+ .action-commit-summary {
+ margin-left: 0;
+ margin-top: 8px;
+ }
}
/* ================ */
@@ -531,6 +539,14 @@ export function initRepositoryActionView() {
top: 12px;
max-height: 100vh;
overflow-y: auto;
+ background: var(--color-body);
+ z-index: 2; /* above .job-info-header */
+}
+
+@media (max-width: 767.98px) {
+ .action-view-left {
+ position: static; /* can not sticky because multiple jobs would overlap into right view */
+ }
}
.job-artifacts-title {
@@ -692,7 +708,9 @@ export function initRepositoryActionView() {
position: sticky;
top: 0;
height: 60px;
- z-index: 1;
+ z-index: 1; /* above .job-step-container */
+ background: var(--color-console-bg);
+ border-radius: 3px;
}
.job-info-header:has(+ .job-step-container) {
@@ -730,7 +748,7 @@ export function initRepositoryActionView() {
.job-step-container .job-step-summary.step-expandable:hover {
color: var(--color-console-fg);
- background-color: var(--color-console-hover-bg);
+ background: var(--color-console-hover-bg);
}
.job-step-container .job-step-summary .step-summary-msg {
@@ -748,17 +766,15 @@ export function initRepositoryActionView() {
top: 60px;
}
-@media (max-width: 768px) {
+@media (max-width: 767.98px) {
.action-view-body {
flex-direction: column;
}
.action-view-left, .action-view-right {
width: 100%;
}
-
.action-view-left {
max-width: none;
- overflow-y: hidden;
}
}
</style>