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

Pro version: No way to make truly full screen? #482

Open
jamesautodude opened this issue Nov 17, 2024 · 1 comment
Open

Pro version: No way to make truly full screen? #482

jamesautodude opened this issue Nov 17, 2024 · 1 comment

Comments

@jamesautodude
Copy link

I'm having an issue where making a modal fullscreen doesn't make it fullscreen

This is on bootstrap version

I changed the config to be fullscreen and while it does make it fullscreen if the model has enough info in it, it doesn't make it fullscreen for cases with minimal info (like one word in the body of the modal), instead it shrinks the modal header down to the bottom of the screen

Is there a way to force the header to stay at the top of the view no matter how much content is in the body?

@PhiloNL
Copy link
Contributor

PhiloNL commented Nov 22, 2024

Hi James,

I think it should work when using:

  public static function attributes(): array
  {
      return [
          'size' => 'fullscreen',
      ];
  }

This will add an additional CSS selector to the modal with the following CSS:

.wep-modal-content.wep-modal-content-fullscreen {
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    margin: 0px;
    width: 100%;
}

Maybe you can tweak the CSS a little using the .wep-modal-content-fullscreen selector if it isn't working.

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

No branches or pull requests

2 participants