Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Make invitation dialog scrollable when infos are too long (#11753)
Browse files Browse the repository at this point in the history
* make invitation dialog scrollable when room name or invitation text/info is too long.

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* truncate room name in invitation dialog to two lines

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* truncate room name in invitation dialog to two lines

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

* fix linter issue

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>

---------

Signed-off-by: nurjinn jafar <nurjin.jafar@nordeck.net>
  • Loading branch information
nurjinjafar authored Oct 24, 2023
1 parent 827715c commit b2fb41b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions res/css/views/dialogs/_InviteDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ limitations under the License.
height: 600px;
overflow: hidden;

h2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: pre-wrap;
overflow: hidden;
}

.mx_InviteDialog_addressBar {
margin-inline-end: 0;
}
Expand Down
13 changes: 13 additions & 0 deletions res/css/views/rooms/_RoomPreviewBar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ limitations under the License.
}
}
}
.mx_RoomPreviewBar_Invite {
max-height: 100vh;
overflow-y: auto;
justify-content: flex-start;
}

.mx_RoomPreviewBar_Invite h3 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: pre-wrap;
overflow: hidden;
}

.mx_RoomPreviewBar_inviter {
font-weight: var(--cpd-font-weight-semibold);
Expand Down

0 comments on commit b2fb41b

Please sign in to comment.