Skip to content

Fix action run view style regressions from #36883#36987

Closed
silverwind wants to merge 3 commits intogo-gitea:mainfrom
silverwind:styleclean
Closed

Fix action run view style regressions from #36883#36987
silverwind wants to merge 3 commits intogo-gitea:mainfrom
silverwind:styleclean

Conversation

@silverwind
Copy link
Copy Markdown
Member

@silverwind silverwind commented Mar 25, 2026

Fix style regressions introduced in #36883:

  • Fix .left-list-header ("All jobs") unreadable on dark theme by using --color-text-light-2 instead of --color-grey (#384149 in dark theme has no contrast)
  • Fix .graph-metrics bullet separator inheriting blue --color-primary color
  • Improve summary block layout with horizontal flexbox and mobile breakpoint
  • Add dot separator between status and duration in summary view
  • Add border below header
Screenshot 2026-03-26 at 00 16 13 Screenshot 2026-03-26 at 00 16 03

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 25, 2026
- Fix `.left-list-header` unreadable on dark theme by using
  `--color-text-light-2` instead of `--color-grey`
- Fix `.graph-metrics` bullet inheriting blue color
- Improve summary block layout with horizontal flexbox
- Add dot separator between status and duration

Co-Authored-By: Claude (claude-opus-4-6) <[email protected]>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes UI regressions in the Actions run “summary” and workflow graph header styling introduced by #36883, primarily improving readability/contrast and separator rendering across themes and breakpoints.

Changes:

  • Adjust sidebar “All jobs” header typography/color for better dark-theme contrast.
  • Refine workflow graph header separators and add a header bottom border.
  • Rework the summary header layout to use a horizontal flex layout with a mobile column breakpoint and add dot separators between metadata items.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
web_src/js/components/WorkflowGraph.vue Tweaks header stats/metrics separator markup and adds a bottom border to the graph header.
web_src/js/components/RepoActionView.vue Improves .left-list-header readability (font size + text color variable).
web_src/js/components/ActionRunSummaryView.vue Updates summary header layout (flex + breakpoint) and introduces dot separators in the summary metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

silverwind and others added 2 commits March 26, 2026 00:26
- Add prefix="" to <relative-time> to prevent default "on" prefix
- Wrap graph metrics bullet in <span> to keep it as single flex item

Co-Authored-By: Claude (claude-opus-4-6) <[email protected]>
<ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="16"/>
<span class="tw-ml-2">{{ locale.status[run.status] }}</span>
<span class="tw-ml-3">{{ locale.totalDuration }} {{ run.duration || '–' }}</span>
<span class="tw-ml-2">{{ locale.status[run.status] }}</span>&nbsp;•&nbsp;<span>{{ locale.totalDuration }} {{ run.duration || '–' }}</span>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can use flex instead of depending on the "newline/space" behavior.

<p class="tw-mb-0"> => <div class="flex-text-inline">

<span v-if="graphMetrics" class="graph-metrics">
• {{ graphMetrics.successRate }} success
<span v-if="graphMetrics">
<span class="graph-metrics">{{ graphMetrics.successRate }} success</span>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many style fine tuning changes can be done in Restyle Workflow Graph #36912 . Otherwise, merge conflicts

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I can also merge this branch onto there instead.

font-size: 12px;
color: var(--color-grey);
font-size: 13px;
color: var(--color-text-light-2);
Copy link
Copy Markdown
Contributor

@wxiaoguang wxiaoguang Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@silverwind silverwind marked this pull request as draft March 26, 2026 09:23
@bircni
Copy link
Copy Markdown
Member

bircni commented Mar 26, 2026

All moved to #36912

@bircni bircni closed this Mar 26, 2026
@silverwind silverwind deleted the styleclean branch March 26, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants