Open michaelklopf opened 4 months ago
Introduction of $maxHeight
variable
A new variable called $maxHeight
is introduced in the language-switch.blade.php
file. This plays a key role in controlling the maximum height property of certain elements in our application.
Usage of :max-height
attribute
The newly introduced $maxHeight
variable is utilized as a :max-height
attribute in the switch.blade.php
file. This allows us better control over the visual aspects as it defines the maximum height of an element.
Added functionality in LanguageSwitch.php
Included a new property, protected string $maxHeight = 'max-content';
, and a new function public function maxHeight(string $height): static
to the LanguageSwitch.php
file. This further extends the customization capabilities of our language switch feature, enabling it to adjust to different sizes based on input from the $maxHeight
variable.
We would like to add the functionality to set the max height of the dropdown. Because when you have a lot of languages you can't scroll through the list anymore
It currently looks like this
and like this with the PR