소스 검색

Improve object view on small screens

Matt 4 년 전
부모
커밋
6845fb0f00
3개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 0
      netbox/project-static/dist/netbox-dark.css
  2. 0 0
      netbox/project-static/dist/netbox-light.css
  3. 10 1
      netbox/project-static/styles/netbox.scss

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
netbox/project-static/dist/netbox-dark.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
netbox/project-static/dist/netbox-light.css


+ 10 - 1
netbox/project-static/styles/netbox.scss

@@ -250,9 +250,18 @@ table {
 
 div.title-container {
   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;
   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 {
     display: flex;
     flex: 1 0;
@@ -501,7 +510,7 @@ div.content-container {
   position: relative;
   display: flex;
   flex-direction: column;
-  width: calc(100% - 3rem);  // $sidenav-width-closed
+  width: calc(100% - #{$sidenav-width-closed});
   min-height: 100vh;
   overflow-x: hidden;
   overflow-y: auto;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.