Skip to content

Commit be05608

Browse files
committed
Fix text alignment in invocation grid rows
Fixes #21143 — three alignment issues on the Workflow Invocations grid: Grid cells used the browser default vertical-align: middle, so when the History column wrapped to multiple lines, other columns' content floated to the vertical center. Added align-top to td elements in GridList. SwitchToHistoryLink's flex container used space-between and center, which pushed the archive/purge icon far right and vertically centered it. Switched to baseline and dropped space-between. GLink renders as a button when no href/to is provided, and browsers default buttons to text-align: center. Used a scoped deep selector to override this on the history link so wrapped text stays left-aligned.
1 parent d77ed6e commit be05608

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

client/src/components/Grid/GridList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ watch(operationMessage, () => {
436436
<td
437437
v-for="(fieldEntry, fieldIndex) in gridConfig.fields"
438438
:key="fieldIndex"
439-
class="px-2 py-3"
439+
class="px-2 py-3 align-top"
440440
:style="{ width: `${fieldEntry.width}%` }">
441441
<div
442442
v-if="!fieldEntry.condition || fieldEntry.condition(rowData)"

client/src/components/History/SwitchToHistoryLink.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ const linkClass = computed(() => {
131131
.history-link {
132132
display: flex;
133133
gap: 1px;
134-
align-items: center;
135-
justify-content: space-between;
134+
align-items: baseline;
135+
}
136+
137+
.history-link :deep(.g-link) {
138+
text-align: start;
136139
}
137140
</style>

0 commit comments

Comments
 (0)