Skip to content

Commit a0b3bbf

Browse files
authored
fix(ui): prevent filename and diff count overlap in session changes (#14773)
1 parent 270d084 commit a0b3bbf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/ui/src/components/session-review.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
align-items: center;
100100
justify-content: space-between;
101101
width: 100%;
102+
min-width: 0;
102103
gap: 20px;
103104
}
104105

@@ -115,9 +116,12 @@
115116
align-items: center;
116117
flex-grow: 1;
117118
min-width: 0;
119+
overflow: hidden;
118120
}
119121

120122
[data-slot="session-review-directory"] {
123+
flex: 1 1 auto;
124+
min-width: 0;
121125
color: var(--text-base);
122126
text-overflow: ellipsis;
123127
overflow: hidden;
@@ -129,6 +133,11 @@
129133
[data-slot="session-review-filename"] {
130134
color: var(--text-strong);
131135
flex-shrink: 0;
136+
max-width: 100%;
137+
min-width: 0;
138+
overflow: hidden;
139+
text-overflow: ellipsis;
140+
white-space: nowrap;
132141
}
133142

134143
[data-slot="session-review-view-button"] {
@@ -163,6 +172,7 @@
163172
gap: 16px;
164173
align-items: center;
165174
justify-content: flex-end;
175+
margin-left: auto;
166176
}
167177

168178
[data-slot="session-review-diff-chevron"] {

0 commit comments

Comments
 (0)