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

Lightbox is not Working with Bootstrap #10

Closed
MuhaddiMu opened this issue May 24, 2019 · 6 comments
Closed

Lightbox is not Working with Bootstrap #10

MuhaddiMu opened this issue May 24, 2019 · 6 comments

Comments

@MuhaddiMu
Copy link

I'm not sure why it's not working with Bootstrap.

When I remove import ('Bootstrap.css) its working fine while my custom stylesheet still there.

Any help would be much appreciated

Thanks

@MuhaddiMu MuhaddiMu changed the title This Lightbox is not Working with Bootstrap Lightbox is not Working with Bootstrap May 24, 2019
@clevercodenl
Copy link

I have the same problem, using bootstrap 3.3.6

@clevercodenl
Copy link

I fixed it by adding a class to the element and adding this class afterwards in te component like this :
<customer-upload-light-box :visible="visible" :imgs="image" @hide="hideImage" class="force-display" ></customer-upload-light-box>
and like this :
<style lang="scss"> .force-display{ display:block!important; } </style>

The .vue component would look like :

`


<customer-upload-light-box
:visible="visible"
:imgs="image"
@hide="hideImage"
class="force-display"
>


<script> import LightBox from 'vue-easy-lightbox'; export default { name: 'app', data() { return { } }, methods: { hideImage: function() { this.$store.commit('HIDE_IMAGE', ''); }, }, computed:{ visible() { return this.$store.getters.visible; }, image() { return this.$store.getters.image; }, }, components: { customerUploadLightBox: LightBox, } } </script> <style lang="scss"> .force-display{ display:block!important; } </style>

`

@MuhaddiMu
Copy link
Author

Thanks alot @GreenLeewayDesignCastle It's working now. 💯

@XiongAmao
Copy link
Owner

I didn't use Bootstrap. It's there any demos?
Should i add display:block to component's root element?
(I'm sorry for viewing issues too late

@MuhaddiMu
Copy link
Author

MuhaddiMu commented Jun 7, 2019

Hey @XiongAmao Here's the simple project I am working on if you can take a look:
https://github.com/MuhaddiMu/VueGallery

Yeah i'll suggest to add display:block to the root element to avoid design issues later on.

@XiongAmao XiongAmao reopened this Jun 8, 2019
XiongAmao added a commit that referenced this issue Jun 8, 2019
@XiongAmao
Copy link
Owner

Thx guys ! @MuhaddiMu @GreenLeewayDesignCastle
I fixed it a6ec245 & release 0.3.11

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

3 participants