mstdmstd Posted December 6, 2019 Share Posted December 6, 2019 Hello, Could you please look at design ofhttp://vtasks.my-demo-apps.tk/ site In my vue/cli 4 / Bootstrap 4.3 app I make listing of tasks in 1 column on small devices(ipad-s) and 2 columns on big devices, like : <div class="row " v-show="tasks.length && is_page_loaded"> <div v-for="(nextActiveTask, index) in tasks" :key="nextActiveTask.id" class="col-sm-12 col-md-6 p-2 m-0"> <task-list-item :currentLoggedUser="currentLoggedUser" :nextActiveTask="nextActiveTask" :index="index" :is_show_location="true" ></task-list-item> </div> </div> But testing different devices with Chrome, Chromium I see 2 colums on ipad:https://imgur.com/a/QEfcHdi and I do not see why. Is it error in my design? Problems with browsers ? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/ Share on other sites More sharing options...
requinix Posted December 6, 2019 Share Posted December 6, 2019 How wide is your display? What are the thresholds for what Bootstrap considers to be sm and md? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572295 Share on other sites More sharing options...
mstdmstd Posted December 7, 2019 Author Share Posted December 7, 2019 I provided a printscreen with device selected at top : ipad : 768*1024. Did you see it ? I expected content be in 1 column. Why in 2 columns ? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572343 Share on other sites More sharing options...
requinix Posted December 7, 2019 Share Posted December 7, 2019 How about my second question? Did you find an answer to that? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572349 Share on other sites More sharing options...
mstdmstd Posted December 8, 2019 Author Share Posted December 8, 2019 2) I suppose : small grid (≥ 768px) = .col-sm-*, medium grid (≥ 992px) = .col-md-*, large grid (≥ 1200px) = .col-lg-*. and is it related with problem I have ? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572360 Share on other sites More sharing options...
requinix Posted December 8, 2019 Share Posted December 8, 2019 Where did you get those numbers? From the Bootstrap v3 documentation? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572361 Share on other sites More sharing options...
mstdmstd Posted December 8, 2019 Author Share Posted December 8, 2019 I suppose from Bootstrap 4. Are they different? Actually I used browsers default devices for testing? Do you mean that for Bootstrap 3 and Bootstrap 4 sizes are different ? Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572368 Share on other sites More sharing options...
requinix Posted December 8, 2019 Share Posted December 8, 2019 Stop supposing and actually find the answer. It's documented very clearly if you look for it. Yes, Bootstrap v3 and v4 define the sizes differently. Because apparently nobody over there has any idea what "backwards compatibility" is. 1 Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572374 Share on other sites More sharing options...
mstdmstd Posted December 14, 2019 Author Share Posted December 14, 2019 Yes, you are right : sizes are different. I fixed the issue. Could you, please, take a look at legend layout at pagehttp://vtasks.my-demo-apps.tk/public_profile/3 I aded borders for fieldset, but with border legend text is striked out : https://prnt.sc/qat40d and I did not find how to fix it... Quote Link to comment https://forums.phpfreaks.com/topic/309647-in-my-layout-2-columns-on-small-devices/#findComment-1572511 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.