Giter VIP home page Giter VIP logo

Comments (5)

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024 1

@MWDelaney -

Specifying mobile and tablet specific column widths like in Bootstrap is not currently possible. Bootstrap isn't used in the project, however I am interested in supporting something like this so long as it can be achieved without adversely affecting people who have no use for this level of control.

What you can do in Tailor at the moment:

  1. Specify custom classes for both rows and columns.
  2. Select the breakpoint at which columns collapse into a single column.

One factor to overcome is that columns in Tailor are added and resized using drag and drop. I'm putting together a free advanced extension for more advanced features that not everyone will be interested in to avoid "feature bloat" in the core plugin. Perhaps a couple of settings could be added through that to control the individual column widths on various screen sizes.

Interested to get your thoughts on what this could realistically look like in the context of Tailor.

from tailor.

MWDelaney avatar MWDelaney commented on August 27, 2024

Is it possible for the Tailor canvas to know which device preview "mode" you're currently in? Could the drag-to-resize columns (and classes) be set and saved per "device mode"?

That way you could set your column widths for desktop (a typical default view when working in Tailor) and then switch the view mode to tablet, resize the columns, and both settings would be saved. This way editing is always done in context with the device you're styling for, and doesn't add clutter to the settings screens.

The output would necessarily be something like Bootstrap's sm-6 md-8 classes but it would get the job done.

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

I like the idea, although suspect that it may suffer from some problems (e.g., dragging to resize collapsed columns). Responsive settings of this sort are planned to be part of an upcoming free extension, so I will put some thought into how this could/should work.

Really keen to get feedback from you (and anyone reading this)!

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

@MWDelaney -

Tailor 1.7.4 introduces both nested and responsive columns. Enjoy.

from tailor.

reefki avatar reefki commented on August 27, 2024

@andrew-worsfold Thanks for improve the column element that now uses percentage instead of 12 grid.

However I think it would be awesome if there is a field to manually enter the width because I have a little problem resizing the column using the mouse to get the exact width for example 1/3 column currently I get 33.4% which should be 33.3333333333%

I know it very tiny difference between 33.4% and 33.3333333333% but the displayed result quite make a big difference with 33.3333333333% I get 370px which is perfect pixel but with 33.4% I get only 369.45px, some of image inside becomes blurry because the column size is lower than 370px

Another benefit of adding column width field is ability to set different column widths on mobile and tablet. Now I take a sidebar as example I want to have a 1/3 (33.3333333333%) on desktop/tablet and I want to make it full width on mobile devices. Here is what I get currently:

Desktop
screen shot 2016-12-04 at 19 08 00

Tablet
screen shot 2016-12-04 at 19 07 46

Mobile
screen shot 2016-12-04 at 19 07 34

Look at the mobile view, the content is narrowed than the sidebar that looks a bit weird though. I know there is a visibility options which can be used to hide it on phones but that's not the point.

I look forward to hear your though on it.

EDIT: Forgot to mention that the mobile view is using 480px instead of 320px

from tailor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.