F
Filamentā€¢11mo ago
DianaMujoiu

Wizard height

Hello, everyone. How can I set the wizard height using hook classes. In the video I present you the wizard behavior. I want it to fit in page
15 Replies
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
Any ideea? šŸ™†ā€ā™€ļø
Tieme
Tiemeā€¢11mo ago
try ->extraatributes or custom css as you already have done with the background.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
In the wizard I have a repeater which seems to cause the problem. Should I put some extra attributes on it?
awcodes
awcodesā€¢11mo ago
I think this is a bug in core. The steps are using the ā€˜invisibleā€™ class which makes elements hidden but they still take up space in the dom.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
Yes, this is what's happening. Have you any idea how can I do a workaround? This is my page where I have the wizard
<div class="register-page min-h-screen flex items-center justify-center p-4">
<form wire:submit="submit">
{{ $this->form }}
</form>
</div>
<div class="register-page min-h-screen flex items-center justify-center p-4">
<form wire:submit="submit">
{{ $this->form }}
</form>
</div>
and this is the register-page class
.register-page {
background: url("/public/images/auth-bg.png") no-repeat center;
background-size: cover;
}
.register-page {
background: url("/public/images/auth-bg.png") no-repeat center;
background-size: cover;
}
awcodes
awcodesā€¢11mo ago
I think it would need to be fixed at the core level but possibly with custom css in a theme.
.fi-fo-wizard-step:not(.fi-active) {
overflow: hidden
}
.fi-fo-wizard-step:not(.fi-active) {
overflow: hidden
}
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
unfortunately, is the same
No description
awcodes
awcodesā€¢11mo ago
Try adding ā€˜visibility: visibleā€™ to counteract the invisible class. And you might need to use !important too. Make sure you rerun the build for your theme too.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
.fi-fo-wizard-step:not(.fi-active) {
overflow: hidden !important;
visibility: visible;
}
.fi-fo-wizard-step:not(.fi-active) {
overflow: hidden !important;
visibility: visible;
}
Like this?
awcodes
awcodesā€¢11mo ago
Yes, but the visibility probably needs important too. But this is a pretty specific selector so I wouldnā€™t think it would be needed.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
I've also added the !important to visibility rerun the build for theme but is the same problem
awcodes
awcodesā€¢11mo ago
Check in devtools to make sure the style is getting applied to the actual step. And if something else is overriding your override.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
Yes, it seems that the class is not applied. I will check the devtools for more details and see if I can figure out what the problem is Thank you for your time
awcodes
awcodesā€¢11mo ago
No worries.
DianaMujoiu
DianaMujoiuOPā€¢11mo ago
Hi, @awcodes . I found this solution for the wizard
.fi-fo-wizard-step:not(.fi-active) {
position: relative;
}
.fi-fo-wizard-step:not(.fi-active) {
position: relative;
}
Maybe it can help you to solve the core issue

Did you find this page helpful?