Code Monkey home page Code Monkey logo

Comments (8)

ppfeufer avatar ppfeufer commented on June 12, 2024 1

Same for the footer element …

from privatebin.

ppfeufer avatar ppfeufer commented on June 12, 2024 1

Form:
image

Preview:
image

that's because of the article row class.
image

If that's removed, it looks ok
image

Same in the Paste view, the row needs to be removed from the article element and it looks good …
image

from privatebin.

elrido avatar elrido commented on June 12, 2024

This seems to be a choice of the bootstrap framework. Looking at the CSS rules they provide for the .container class, we see in bootstrap 3:

@media (min-width: 992px)
.container {
  width: 970px;
}
@media (min-width: 768px)
.container {
  width: 750px;
}

While in bootstrap 5 it is:

@media (min-width: 992px)
.container, .container-lg, .container-md, .container-sm {
  max-width: 960px;
}
@media (min-width: 768px)
.container, .container-md, .container-sm {
  max-width: 720px;
}
@media (min-width: 576px)
.container, .container-sm {
  max-width: 540px;
}

Changing this to the .container-fluid classes would change it to 100%.

Edit: I found an old PR that addressed this default behavior for the bootstrap 3 template in #501 and here is how the custom CSS looked like:

/* address 2K or 4K monitors when using bootstrap 3 */
@media (min-width: 1280px) {
	.container {
		width: 100%;
		padding-left: 4ch;
		padding-right: 4ch;
	}
}

We should forward-port this to the new template, since the goal is to replicate the older one, but using the new release of bootstrap.

from privatebin.

FingerlessGlov3s avatar FingerlessGlov3s commented on June 12, 2024

Surely the proper fix here is to use fluid containers as it does exactly what we're after, and then add pl-2 and pr-2 classes to add the side padding if that's needed.

Editing it is what we did last time but isn't really the right approach, in my eyes.

from privatebin.

ppfeufer avatar ppfeufer commented on June 12, 2024

Surely the proper fix here is to use fluid containers as it does exactly what we're after, and then add pl-2 and pr-2 classes to add the side padding if that's needed.

Editing it is what we did last time but isn't really the right approach, in my eyes.

Seconded.
BS5 already provides this class, so there is no need to "fight" against Bootstrap here.

Side padding is ps-* for left and pe-* for right (start and end), btw. But it shouldn't be needed, since container-fluid has a gutter of 1.5rem defined.

image

from privatebin.

FingerlessGlov3s avatar FingerlessGlov3s commented on June 12, 2024

Surely the proper fix here is to use fluid containers as it does exactly what we're after, and then add pl-2 and pr-2 classes to add the side padding if that's needed.

Editing it is what we did last time but isn't really the right approach, in my eyes.

Seconded.
BS5 already provides this class, so there is no need to "fight" against Bootstrap here.

Side padding is ps-* for left and pe-* for right (start and end), btw. But it shouldn't be needed, since container-fluid has a gutter of 1.5rem defined.

image

Yes it would be, start and end, it was left and right back in BS4 πŸ˜…

When I changed it to fluid I had no left or right Margin and the border on the viewing of a paste had no margin. How does yours look?

Creating a paste looked ok.

from privatebin.

rugk avatar rugk commented on June 12, 2024

Anyone feel free to submit a PR (with screenshots) to fix it…

from privatebin.

FingerlessGlov3s avatar FingerlessGlov3s commented on June 12, 2024

Please see PR #1341

from privatebin.

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.