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

[MOD] Notifications panel: user-configurable resize

Open aclist opened this issue 2 years ago • 3 comments

"New request - currently when there's an update I redo a minor change I've been making for the size and location of the window. Maybe that can be added in as a preference? I've been changing the translateX percent number and adding in a width percentage at the end of the iframe CSS line. A huge change would be to make it resizable with the mouse and remember, but I don't know how hard that is.

Reposted from kbin: https://kbin.social/m/kbinStyles/t/152279/Kbin-Notifications-Panel#entry-comment-887442

aclist avatar Jul 18 '23 14:07 aclist

It looks like it should be possible with a ResizeObserver() (reference here) that saves the new size to localstorage

artillect avatar Jul 18 '23 17:07 artillect

Sure, want to take a stab at it? We can always use number inputs in the settings panel as a more vanilla way. E.g., X/Y offset and size as an incrementable number.

aclist avatar Jul 18 '23 19:07 aclist

I was thinking of making the panel center on the screen as a modal, which may be more convenient.

aclist avatar May 26 '24 05:05 aclist