Sidebar doesn't render correctly in some mobile browsers
See original GitHub issueI tested with some samsung phones with samsung mobile browser (Chrome based).
First of, sidebar-body size rendering smaller than desktop browsers on mobile browsers so some of the content not visible on the mobile browser.
Screen shoot on desktop browser: desktop-browser
Screen shoot on mobile browser: Mobile-browser
in this example I had to add extra padding to the bottom of it.
The second is: Custom Footer not rendering correctly in the mobile browser: Screen shoot on desktop browser: Desktop-browser
Screen shoot on mobile browser: Mobile-browser
in the mobile browser its outside of the screen.
Steps to reproduce the bug
$ vue create sidebar-test
(use [Vue 2] node-sass, babel, router, vuex, eslint, unit-jest )
/sidebar-test$ vue add bootstrap-vue
(I am using the vue plugin)
on the @/views/About.vue change :
<template>
<div class="about">
<h1>This is an about page</h1>
</div>
</template>
to
<template>
<div>
<b-button v-b-toggle.sidebar-footer>Toggle Sidebar</b-button>
<b-sidebar id="sidebar-footer" aria-label="Sidebar with custom footer" no-header shadow>
<template #footer="{ hide }">
<div class="d-flex bg-dark text-light align-items-center px-3 py-2">
<strong class="mr-auto">Footer</strong>
<b-button size="sm" @click="hide">Close</b-button>
</div>
</template>
<div class="px-3 py-2">
<p>
Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis
in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
</p>
<b-img src="https://picsum.photos/500/500/?image=54" fluid thumbnail></b-img>
</div>
</b-sidebar>
</div>
</template>
/sidebar-test$ yarn serve
Open http://localhost:8080/about
Versions
Libraries:
- BootstrapVue: ^2.20.1
- Bootstrap: 4.5.1
- Vue: ^2.6.12
Environment:
- Device: [Any Samsung phone]
- OS: [Android]
- Browser: [Samsung Browser]
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
CSS doesn't render correctly on iOS when zooming in
My CSS works pretty well when rendered on a desktop browser, even when I zoom in. However, on an iOS device, zooming in...
Read more >Doesn't work in sidebar on Chrome or Firefox but does with ...
I took a quick look at the page you provided and it appears no sidebar is rendering at all. I tried in Edge...
Read more >9 - The rendering place and sidebar does not resize with other ...
Looks like only vertical resizing makes it happen. Once you resize it horizontally (even by one pixel), GMail matches the scroll bar to...
Read more >If your device doesn't appear in the sidebar when connected ...
Check that the cable is properly connected. · Make sure that the device is unlocked and the Home Screen is visible. · Check...
Read more >CSS fix for 100vh in mobile WebKit
On the left, the browser navigation bar (considered browser chrome) is covering up the footer making it appear that the footer is beyond...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jackmu95; I tested issues with this br on my samsung phones and all issues are fixed now!
Thank you so much guys! Your are the best. Cheers!
@mdogancay You can actually test it right now when you install
boostrap-vue
from CodeSandbox CI:yarn add https://pkg.csb.dev/bootstrap-vue/bootstrap-vue/commit/1740cb3f/bootstrap-vue