kbin-kes icon indicating copy to clipboard operation
kbin-kes copied to clipboard

[MOD] Fix for profile dropdown menu being off-center

Open aclist opened this issue 11 months ago • 1 comments

Browser

Firefox-based

Script manager

Tampermonkey

KES version

4.3.0-beta.8

Describe the add-on

As far as I could see, with MES fully disabled and scale factor at 100%, the dropdown menu under the profile is always off-center because a rule of left: -3.75rem is being applied for some reason. This prevents a global rule from applying sane alignment.

If you open the dropdown menu by entering the profile link from the right side, this means you have to drag the cursor to the left to stay inside the bounds of the dropdown menu, otherwise (when moving the cursor directly down in a natural fashion) the cursor goes out of bounds and the menu is hidden.

This fix would restore the 50% rule.

#header menu .dropdown:last-of-type .dropdown__menu {
left: 50% !important;
}

aclist avatar Jan 30 '25 06:01 aclist

It seems that this is actually caused by usernames that are too long. After about 11-12 chars (depends on the physical width of the character), the dropdown goes out of alignment.

aclist avatar Feb 12 '25 14:02 aclist