Jump to content
mstdmstd

In my layout 2 columns on small devices

Recommended Posts

Hello,
Could you please look at design of
http://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!
 

Share this post


Link to post
Share on other sites

How wide is your display? What are the thresholds for what Bootstrap considers to be sm and md?

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

How about my second question? Did you find an answer to that?

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

Where did you get those numbers? From the Bootstrap v3 documentation?

Share this post


Link to post
Share on other sites

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 ?

 

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.