Vuetify: [Bug Report] v-container has full width on breakpoints

Created on 14 Aug 2019  路  15Comments  路  Source: vuetifyjs/vuetify

Environment

Vuetify Version: 2.0.7
Last working version: 1.5.17
Vue Version: 2.6.8
Browsers: Chrome 75.0.3770.100
OS: Linux x86_64

Steps to reproduce

Use non fluid container in 1.x and 2.x and compare

Expected Behavior

Use any 1.x release and notice that max-width of the container is always less than the breakpoint. This is what gives it a distinctly different look than fluid container.

This is also true for bootstrap grid system and all others I know

Actual Behavior

max-width is same as breakpoint min-width, which completely breaks the purpose of the non-fluid container at the breakpoint width

Reproduction Link

https://codepen.io/iamareebjamal/pen/JjPKMLM

VGrid regression has workaround

All 15 comments

Please do not add full projects as a repo, create a minimal one, best in codepen

I have updated the reproduction link. It spans full width in container whereas Vuetify 1 spanned less. It's breakpoint specific bug so you need to adjust the width to be at breakpoint. I don't know how reproduction helps here as the bug is just that the max-width of container at breakpoints used to be less than the breakpoint width itself. Like in every other framework and bootstrap (which was the inspiration of grid implementation changes.

V2:
https://github.com/vuetifyjs/vuetify/blob/7f79ac33b7c54494dd3b5ed3ef042699b53c03ec/packages/vuetify/src/components/VGrid/_grid.sass#L66-L73

V1:
https://github.com/vuetifyjs/vuetify/blob/a03714b545fd828f5b59550127cdd6ee01ad4c59/packages/vuetify/src/stylus/components/_grid.styl#L9-L11

I was going to write a similar request. I agree with @iamareebjamal
I have monitor with 1920px. Component v-container (without fluid) like v-container with _fluid_. It is not good view, especially with full text content.

If this is a big problem for you you can change the $container-max-widths sass variable: https://vuetifyjs.com/en/customization/sass-variables

I have changed it, but would rather not have tree shaking enabled in debug builds because it slows it down a lot

What is the proper way to implement the workaround? I have followed the guide but am having trouble getting my $container-max-widths to override vuetifys

// src/sass/main.scss
@import '~vuetify/src/styles/styles.sass';

$container-max-widths: map-merge($container-max-widths, (
    'sm': '980px',
    'md': '1185px',
    'lg': '1785px',
    'xl': '1185px'
))

Any updates on this? It's happening to me aswell

have simular problem with last vuetify version, breakpoint is not working for xl

This is still an issue on the latest non-beta version (2.1.14). The methods posted here don't seem to work.

Any news on this?

It was fixed in v2.1.0

@KaelWD Are you sure? I ran into this issue on version 2.1.14.

Was this page helpful?
0 / 5 - 0 ratings