Comments (8)
Same for the footer
element β¦
from privatebin.
that's because of the article row
class.
If that's removed, it looks ok
Same in the Paste view, the row
needs to be removed from the article
element and it looks good β¦
from privatebin.
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.
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.
Surely the proper fix here is to use fluid containers as it does exactly what we're after, and then add
pl-2
andpr-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.
from privatebin.
Surely the proper fix here is to use fluid containers as it does exactly what we're after, and then add
pl-2
andpr-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 andpe-*
for right (start and end), btw. But it shouldn't be needed, sincecontainer-fluid
has agutter
of 1.5rem defined.
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.
Anyone feel free to submit a PR (with screenshots) to fix itβ¦
from privatebin.
Please see PR #1341
from privatebin.
Related Issues (20)
- Url Shortener POST Request HOT 2
- An option to require all pastes to be protected with a password HOT 2
- Improve documentation regarding comments. HOT 4
- `Save Paste` button should save to .md extension if paste format is markdown HOT 7
- `url` property served in api responses is incomplete HOT 3
- When shorten the url, link should be opened in a new window HOT 1
- Removing page template and cleaning up code HOT 2
- PHP 8.4 tests failing HOT 2
- 1.7.2 / valid to / paste lifetime / lease time / always 23 hours HOT 11
- Feature Request: Rephrase the WebAssembly error on unsupported browsers HOT 2
- bs5 file upload too small
- bs5 sourcecode highlighting hard to read
- S3 provider broken in 1.7.2 HOT 2
- bs5 text wrapping in menu bar instead of collapsing HOT 5
- In version 1.7.2, the user-selected expiration is ignored HOT 5
- End-to-end testing with PHP backend and JS Frontend
- Improve JS (Frontend) unit testing coverage HOT 13
- Could not create paste: Error saving paste. Sorry. (1.7.2 and later) HOT 6
- "Dark mode" toggle in Bootstrap 5 theme is not syncronised with prefers-color-scheme at start (when dark)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privatebin.