Skip to content

Commit 02cb447

Browse files
authored
Make text ellipsis in profile popover (#2183)
1 parent a166a08 commit 02cb447

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/host/app/components/operator-mode/profile-info-popover.gts

+10
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ export class ProfileInfo extends Component<ProfileInfoSignature> {
214214
margin: auto;
215215
display: flex;
216216
flex-direction: column;
217+
max-width: 100%;
218+
overflow: hidden;
217219
--profile-avatar-icon-size: 70px;
218220
--profile-avatar-icon-border: 0;
219221
}
@@ -226,11 +228,19 @@ export class ProfileInfo extends Component<ProfileInfoSignature> {
226228
margin-top: var(--boxel-sp-xxxs);
227229
font-size: var(--boxel-font-size);
228230
font-weight: 600;
231+
max-width: 100%;
232+
text-wrap: nowrap;
233+
overflow: hidden;
234+
text-overflow: ellipsis;
229235
}
230236
231237
.profile-handle {
232238
margin-top: var(--boxel-sp-xxxxs);
233239
color: var(--boxel-500);
240+
max-width: 100%;
241+
text-wrap: nowrap;
242+
overflow: hidden;
243+
text-overflow: ellipsis;
234244
}
235245
</style>
236246
</template>

0 commit comments

Comments
 (0)