Merge pull request #17555 from desktop/commit-summary-expansion-tags

Commit Summary Expansion: Tags
This commit is contained in:
tidy-dev 2023-10-18 08:33:27 -04:00 committed by GitHub
commit e0394e8653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 13 deletions

View file

@ -582,12 +582,9 @@ export class ExpandableCommitSummary extends React.Component<
}
return (
<div className="ecs-meta-ite-item">
<span>
<Octicon symbol={OcticonSymbol.tag} />
</span>
<span className="tags selectable">{tags.join(', ')}</span>
<div className="ecs-meta-item tags selectable">
<Octicon symbol={OcticonSymbol.tag} />
<span>{tags.join(', ')}</span>
</div>
)
}

View file

@ -126,11 +126,6 @@
margin: 0;
padding: 0 var(--spacing) var(--spacing);
.ecs-item:not(.without-truncation) {
flex-shrink: 1;
min-width: 0;
}
.ecs-meta-item {
display: flex;
flex-direction: row;
@ -185,9 +180,16 @@
}
}
.tags {
@include ellipsis;
&.tags {
flex-shrink: 1;
.octicon {
padding-right: var(--spacing-half);
}
span {
@include ellipsis;
}
}
}
}
@ -198,6 +200,7 @@
.ecs-meta-item {
margin-bottom: var(--spacing-half);
align-items: unset;
&.authors {
display: block;
@ -207,6 +210,12 @@
display: flex;
}
}
&.tags {
span {
white-space: normal;
}
}
}
}