From b9e08dc63b27b48ae9e3bd6c9019b05523bc821e Mon Sep 17 00:00:00 2001 From: qrewy <114613848+qrewy@users.noreply.github.com> Date: Mon, 20 Jul 2026 01:19:19 +0300 Subject: [PATCH] PermissionViewer: fix scrolling behaviour (#4341) --- src/plugins/permissionsViewer/styles.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/plugins/permissionsViewer/styles.css b/src/plugins/permissionsViewer/styles.css index 910aee668..24a3c3294 100644 --- a/src/plugins/permissionsViewer/styles.css +++ b/src/plugins/permissionsViewer/styles.css @@ -32,17 +32,22 @@ .vc-permviewer-modal-container { width: 100%; - height: 100%; + height: min(760px, 80vh); + min-height: 0; display: flex; gap: 8px; + overflow: hidden; } .vc-permviewer-modal-list { display: flex; flex-direction: column; gap: 2px; + flex: 0 0 200px; + max-height: 100%; + min-height: 0; + overflow: auto; padding-right: 8px; - width: 200px; } .vc-permviewer-modal-list-item-btn { @@ -98,6 +103,11 @@ .vc-permviewer-modal-perms { display: flex; flex-direction: column; + flex: 1 1 0; + max-height: 100%; + min-width: 0; + min-height: 0; + overflow: auto; padding-right: 8px; } @@ -155,4 +165,4 @@ display: flex; align-items: center; gap: 4px; -} \ No newline at end of file +}