Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #14617
Closed
Open
Issue created Sep 15, 2014 by Administrator@rootContributor

Shouldn't modals be vertically centered instead of appearing at the top?

Created by: pedrocatre

So this is not a "how to" question because this answer: http://stackoverflow.com/a/20444744/3094399 on stackoverflow allowed me to solve my issue and implement this behaviour.

The questions then are:

  • Why is modal vertically centered not the default? Seems a lot more user friendly to me and to my users. But since it seems I always find sensible defaults on bootstrap, maybe there is a very good reason behind this that I'm missing.
  • In case there is a good reason would it make sense for this to be configurable (where the modal appears in the window)?

Thanks

Edit: the stackoverflow solution I pointed to as an issue if the modal is bigger than the window. This can be fixed with a conditional statement but there is another answer that only uses HTML and CSS that works well and I think is better http://stackoverflow.com/a/24829651/3094399

Assignee
Assign to
Time tracking