Skip to content

Improve clickable area in repo action view page #26115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 15, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions web_src/js/components/RepoActionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
<div class="action-view-left">
<div class="job-group-section">
<div class="job-brief-list">
<div class="job-brief-item" :class="parseInt(jobIndex) === index ? 'selected' : ''" v-for="(job, index) in run.jobs" :key="job.id" @mouseenter="onHoverRerunIndex = job.id" @mouseleave="onHoverRerunIndex = -1">
<a class="job-brief-link" :href="run.link+'/jobs/'+index">
<a class="job-brief-item" :href="run.link+'/jobs/'+index" :class="parseInt(jobIndex) === index ? 'selected' : ''" v-for="(job, index) in run.jobs" :key="job.id" @mouseenter="onHoverRerunIndex = job.id" @mouseleave="onHoverRerunIndex = -1">
<div class="job-brief-item-left">
<ActionRunStatus :locale-status="locale.status[job.status]" :status="job.status"/>
<span class="job-brief-name gt-mx-3 gt-ellipsis">{{ job.name }}</span>
</a>
<span class="job-brief-info">
</div>
<span class="job-brief-item-right">
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun gt-mx-3" @click="rerunJob(index)" v-if="job.canRerun && onHoverRerunIndex === job.id"/>
<span class="step-summary-duration">{{ job.duration }}</span>
</span>
</div>
</a>
</div>
</div>
<div class="job-artifacts" v-if="artifacts.length > 0">
Expand Down Expand Up @@ -585,6 +585,7 @@ export function initRepositoryActionView() {
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
color: var(--color-text);
}

.job-brief-item:hover {
Expand All @@ -609,28 +610,27 @@ export function initRepositoryActionView() {
transform: scale(130%);
}

.job-brief-item .job-brief-link {
.job-brief-item .job-brief-item-left {
display: flex;
width: 100%;
min-width: 0;
}

.job-brief-item .job-brief-link span {
.job-brief-item .job-brief-item-left span {
display: flex;
align-items: center;
}

.job-brief-item .job-brief-link .job-brief-name {
.job-brief-item .job-brief-item-left .job-brief-name {
display: block;
width: 70%;
color: var(--color-text);
}

.job-brief-item .job-brief-link:hover {
.job-brief-item .job-brief-item-left:hover {
Copy link
Contributor

@wxiaoguang wxiaoguang Aug 7, 2023

Choose a reason for hiding this comment

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

Why it needs to change styles for "div:hover"?

I think that's still the side effect of the blindly-renaming.

Before, it was a:hover, but you named them, div:hover doesn't make sense IMO.

text-decoration: none;
}

.job-brief-item .job-brief-info {
.job-brief-item .job-brief-item-right {
display: flex;
align-items: center;
}
Expand Down