mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Improve object view on small screens
This commit is contained in:
parent
a312311be9
commit
6845fb0f00
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
@ -250,9 +250,18 @@ table {
|
|||||||
|
|
||||||
div.title-container {
|
div.title-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
// On small screens, `flex-direction: column;` ensures the control buttons don't appear on the
|
||||||
|
// same line as the title, but rather break to the next line.
|
||||||
|
flex-direction: column;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
// On large screens, `flex-direction: row;` allows the control buttons to appear vertically
|
||||||
|
// aligned with the title.
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
#content-title {
|
#content-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1 0;
|
flex: 1 0;
|
||||||
@ -501,7 +510,7 @@ div.content-container {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: calc(100% - 3rem); // $sidenav-width-closed
|
width: calc(100% - #{$sidenav-width-closed});
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user