Giter VIP home page Giter VIP logo

Comments (8)

xaksis avatar xaksis commented on May 29, 2024

hey @ken-sands can you provide some example code so I can reproduce it on my end? thanks.

from vue-good-table.

xaksis avatar xaksis commented on May 29, 2024

closing this. Please re-open if you are still seeing the issue with an example.

from vue-good-table.

sushant-j avatar sushant-j commented on May 29, 2024

I have an issue with something similar.
The table adds .responsive as a container for the actual table.
Is there any way to remove/modify this class?

from vue-good-table.

xaksis avatar xaksis commented on May 29, 2024

hey @sushant-j can you explain your issue a little? are you having a name-clash with 'responsive'? or is it resulting in some unwanted behavior? a screenshot might also help.

from vue-good-table.

sushant-j avatar sushant-j commented on May 29, 2024

No, I am not having any name clash as such. The only thing is, I don't want that class as a container, as it adds overflow-x: scroll along with a 100% width.

Right now, I am overriding it, but I have to use the generated hash from the plugin to style it.

.responsive[data-v-0cff0041] {
  overflow: hidden !important;
}

I would like to know if there's any way I could control this class or related styles.

from vue-good-table.

xaksis avatar xaksis commented on May 29, 2024

@sushant-j ok... so if i understand it right, when the screen width is smaller than your table width, you want to hide your content rather than scroll horizontally?
just to make sure we're on the same page, that class is only relevant if your table is wider than your screen width. The default behavior then is, overflowed content will be hidden and your users will never be able to view the hidden content... unless they make the window wider.

what I can do, is make that class optional so you can revert to default behavior... but just wanted to make sure there's a real usecase for this, because addition of responsive container was the result of many asking to avoid the default behavior.

from vue-good-table.

sushant-j avatar sushant-j commented on May 29, 2024

Yes, when the table is wider than the viewport, I want it hidden. I also apply hide classes to certain columns in that scenario (using thClass prop), which allows me to show a smaller subset of columns on smaller viewport widths (think mobiles, tabs, etc.)

It would be great if you could make that class optional for above reason.

from vue-good-table.

xaksis avatar xaksis commented on May 29, 2024

ok cool, i'll make it optional in the next patch release. will create a new issue for this

from vue-good-table.

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.