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
  • #31845
Closed
Open
Issue created Oct 06, 2020 by Administrator@rootContributor

Bootstrap fullscreen modal extra space from right in RTL documents when page scrolling

Created by: MohammadxAli

Bootstrap fullscreen modal adds extra space from right due to padding-right: 17px on rtl (right to left) documents. This only happens when page has scrollbar.

Tested on:

  • Operating system: Windows 10
  • Browsers: Chrome, Firefox, Safari, Microsoft Edge, Opera

Expected behavior: Modal shouldn't have extra padding from right in rtl documents. Not really sure why do we need a padding-right at all, I just removed that inline-style which gets added after modal shows up and everything was working, I even changed the direction to ltr and tried on that and it was still working. Since it is an inline padding from right which gets added using JavaScript, it's really hard to override it in CSS.

Fix: Remove the extra inline-style: padding-right: 17px; from <div class="modal"></div> after modal shows up.

Here's a Pen: https://codepen.io/mohammadxali/pen/GRqKXoK

Assignee
Assign to
Time tracking