BetterDiscordAddons icon indicating copy to clipboard operation
BetterDiscordAddons copied to clipboard

[Bug] PermissionsViewer permission list has no scrollbar and extends outside screen

Open SpeckledFleebeedoo opened this issue 3 years ago • 1 comments

Which plugin/theme is this about? PermissionsViewer

Describe the Bug When opening the detailed permissions list instead of fitting to the screen and having a scrollbar, it is drawn at full height, extending out of the screen at the top and bottom.

To Reproduce Unknown... Potentially related to low monitor resolution (1440x900)?

Expected Behavior A scrollbar, allowing me to scroll through the list of permissions.

Screenshots image Screenshot shows full height (but not full width) of monitor

Discord Version Stable 11980, Linux

SpeckledFleebeedoo avatar Mar 20 '22 15:03 SpeckledFleebeedoo

I also have this same issue on a 1920x1080 resolution monitor. A "fix" that I ended up doing was commenting out line 215. Which was just disabling flex display in the CSS. Lines 214 - 223

#permissions-modal-wrapper #permissions-modal {
    display: flex;
    contain: layout;
    flex-direction: column;
    pointer-events: auto;
    border: 1px solid rgba(28,36,43,.6);
    border-radius: 5px;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.2);
    overflow: hidden;
}

would just turn into this if you want to edit your plugin file

#permissions-modal-wrapper #permissions-modal {
    /* display: flex; */
    contain: layout;
    flex-direction: column;
    pointer-events: auto;
    border: 1px solid rgba(28,36,43,.6);
    border-radius: 5px;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,.2);
    overflow: hidden;
}

FiredHydra avatar Mar 25 '22 02:03 FiredHydra

This should be fixed in the latest version!

zerebos avatar Aug 30 '22 05:08 zerebos