UX: fix card positioning, allow shrink-to-fit (#27774)

This commit is contained in:
Kris 2024-07-08 17:30:43 -04:00 committed by GitHub
parent 784c04ea81
commit 4ee64ad168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,7 @@ export default Mixin.create({
bottom: 10,
left: 10,
},
maxWidth: "unset",
});
} else {
this._menuInstance = await this.menu.show(target, {

View File

@ -38,6 +38,7 @@
// shared styles for user and group cards
.user-card,
.group-card {
min-width: 0;
width: var(--card-width);
color: var(--primary);
background: var(--secondary) center center;

View File

@ -1,5 +1,9 @@
.fk-d-menu[data-identifier="card"] {
z-index: z("usercard");
max-width: calc(100vw - 2em);
.fk-d-menu__inner-content {
min-width: 0;
}
}
.full-page-chat {