Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Sidebar Blogs #1641

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Oct 28, 2024

Description

As a (spiritual?) successor to the blog avatars added by classic XKit's Header Blogs extension, this feature adds all of the user's blogs to the new desktop layout left sidebar. This reduces the number of clicks required to get to e.g. a certain blog's drafts by one.

In the full-width desktop view, this is done by moving the fully-functional blogs list element out of the account dropdown menu entirely using CSS trickery. Shoutout to nightpool for using display: contents in a feature draft and clueing me in to its existence. In narrower views, we don't have anything to move, so a more traditional route of adding icons and styling them to have proper on-hover effects is taken. The mobile drawer is not affected.

Note that sidebar icons change size/padding when a touchscreen is detected, and this has style tweaks for that mode; use browser dev tools responsive mode to see those tweaks.

This could certainly be argued as a tweak. I'd hear those arguments. But I think it's worth bringing up the idea of making it a feature, particularly as in theory it could have preferences (turning on/off the functionality in different widths, for example), and I wouldn't want to move it out of tweaks at some future point.

Testing steps

@marcustyphoon marcustyphoon changed the title New Script: Sidebar Blogs New Feature: Sidebar Blogs Oct 28, 2024
@marcustyphoon marcustyphoon marked this pull request as ready for review October 31, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant