Fix alignment of brand component icon in sidebar#2339
Fix alignment of brand component icon in sidebar#2339ShaungBhone wants to merge 1 commit intolivewire:mainfrom
Conversation
|
Hi @ShaungBhone thanks for the PR! I can confirm this happens when using the Livewire starter kit and changing the sidebar to be collapsible on desktop. This happens because the size of the logo in the starter kit is I will convert the PR to a draft and likely resubmit it myself later so that the description follows our conventions. |
|
Thanks for looking into this! Just to clarify, the issue isn't specific to the logo size. The problem occurs regardless of whether it's size-8 or size-6. The core issue is that the logo needs justify-center (or similar centering) to be properly aligned when the sidebar is collapsed, independent of the actual size of the logo itself. |
|
Try changing the size in
Which now aligns with the sidebar example in Flux:
So the core issue is that the logo isn't properly aligned with sizes under/beyond Even with
I'll address all these points in a separate PR. But thanks for pointing at this! |
|
I'm sorry if my response came across as dismissive. The PR requires additional work and it will be easier to investigate this myself, hope you understand that. Additionally the description doesn't follow the standard template. In the future consider creating an issue instead. Either way I appreciate you bringing this up. |
|
No worries at all, I completely understand! Currently, I will publish by myself. Thanks for taking the time to look into it and for the feedback. Appreciate you taking this forward! |



This pull request makes a minor update to the sidebar brand component's layout by adding center alignment to its contents. This ensures that the items within the sidebar brand are properly centered.
justify-centerclass to the sidebar brand container inbrand.blade.phpto center its contents horizontally.When I use the collapsible sidebar icon is misaligned! b/c that component doesn't have 'justify-center'