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

Fixed right-side alignment when using ->outsidePanelPlacement(...Right) #108

Closed
wants to merge 0 commits into from

Conversation

kerwin-wildsea
Copy link

When using a config like the following:

LanguageSwitch::configureUsing(function (LanguageSwitch $switch) {
    $switch
        ->locales(['nl', 'en'])
        ->visible(outsidePanels: true)
        ->outsidePanelPlacement(Placement::TopRight)
        ->outsidePanelRoutes();
});

Shows the Language Switch on the top left (See image below).

image

This is also the same for the other non-left options, they all show the dropdown on the left side of the screen:

->outsidePanelPlacement(Placement::TopRight)
->outsidePanelPlacement(Placement::BottomRight)
->outsidePanelPlacement(Placement::TopCenter)
->outsidePanelPlacement(Placement::BottomCenter)

With this fix the Language Switch will be on the center or right properly when configured to do so.


Tested on FireFox (PC & Android Device) and Chrome (PC & Android Device)

Copy link

what-the-diff bot commented Nov 18, 2024

PR Summary

  • Updated Class Attributes for Consistent Width
    The changes ensure the specific section of the website maintains its width no matter the size of the user's screen. It now fills up the entire horizontal space available, giving the page a more consistent and professional look.

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