Google Drive Picker (JavaScript) not mobile friendly / responsive

后端 未结 1 568
面向向阳花
面向向阳花 2020-12-20 15:32

Nov \'15 - still looking for a solution.

I\'m using the Google Picker API https://developers.google.com/picker/docs/#hiworld to (obviously!) have the user pick a fil

相关标签:
1条回答
  • 2020-12-20 15:54

    I had a similar problem and managed to solve it by using this css:

    @media screen and (max-width: 991px) {
     .picker.modal-dialog {
        max-width: 355px !important;
     }
     .picker.modal-dialog-content.picker-dialog-content{
         max-width: 355px !important;
     }
    }
    

    You should be able to adjust the width and media query to suit your needs or do more media quires to make it look nicer in other devices.

    I also set the option in the JS to the minimum PickerBuilder.setSize(566,350).

    0 讨论(0)
提交回复
热议问题