[wp-trac] [WordPress Trac] #15317: My Sites limited to 23 sites on Admin Bar
WordPress Trac
noreply at wordpress.org
Thu Sep 2 13:16:26 UTC 2021
#15317: My Sites limited to 23 sites on Admin Bar
-------------------------------------+-------------------------------------
Reporter: ronbme | Owner: morganestes
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Toolbar | Version: 3.1
Severity: normal | Resolution:
Keywords: make-flow needs-patch | Focuses: ui, multisite, rest-
needs-design-feedback needs- | api
refresh needs-screenshots |
-------------------------------------+-------------------------------------
Comment (by PerS):
Replying to [comment:67 PerS]:
> Replying to [comment:65 PerS]:
> > I'm doing my take on the subsites menu. I lazy load the subsites,
using IntersectionObserver and AJAX, loading only 80 subsites at a time.
I've used @zephyr7501 CSS patch to make the subsites menu scrollable. My
code is available at https://github.com/soderlind/super-admin-all-sites-
menu
>
> I've updated my plugin, storing subsite menu data in IndexedDB, and only
updating IndexedDB when a site is added or deleted, making it very
fast/lite. I've also added a search filter.
FWIW: (as I mentioned earlier) I use the CSS from @zephyr7501. It had a
small issue, if the number of sites didn't fill the window height you got
a gray field below the last entry, all the way to the bottom of the page.
In my plugin I adjust the menu height using an IntersectionObserver:
https://github.com/soderlind/super-admin-all-sites-
menu/blob/main/include/modules/observe.js#L33-L75
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15317#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list