2
0
Эх сурвалжийг харах

Make the shgraph options/buttons panel fit on smaller windows

Leonardo Jeanteur 4 жил өмнө
parent
commit
021ec07497
2 өөрчлөгдсөн 23 нэмэгдсэн , 25 устгасан
  1. 10 12
      bin/style.css
  2. 13 13
      bin/style.less

+ 10 - 12
bin/style.css

@@ -1300,16 +1300,24 @@ input[type=checkbox]:checked:after {
   outline: none !important;
   outline: none !important;
 }
 }
 .graph-view .tabs {
 .graph-view .tabs {
+  width: 280px;
+  padding-top: 10px;
+  border-left: 1px solid #444444;
   z-index: 205;
   z-index: 205;
   background: #222222;
   background: #222222;
   height: 100%;
   height: 100%;
   user-select: none;
   user-select: none;
 }
 }
+.graph-view .tabs span {
+  margin-left: 5px;
+  font-size: 15px;
+  font-weight: bold;
+}
 .graph-view .tabs .tab {
 .graph-view .tabs .tab {
   height: 100%;
   height: 100%;
 }
 }
 .graph-view .tabs .tab .hide-block {
 .graph-view .tabs .tab .hide-block {
-  height: 70%;
+  height: calc(100% - 5% - max(250px, 25%));
 }
 }
 .graph-view .tabs .tab .hide-block #parametersList {
 .graph-view .tabs .tab .hide-block #parametersList {
   height: 100%;
   height: 100%;
@@ -1373,7 +1381,7 @@ input[type=checkbox]:checked:after {
   font-size: 12px;
   font-size: 12px;
 }
 }
 .graph-view .tabs .tab .options-block {
 .graph-view .tabs .tab .options-block {
-  height: 25%;
+  height: max(250px, 25%);
 }
 }
 .graph-view .tabs .tab .options-block > * {
 .graph-view .tabs .tab .options-block > * {
   display: block;
   display: block;
@@ -1665,16 +1673,6 @@ input[type=checkbox]:checked:after {
   stroke: rgba(0, 0, 255, 0.7);
   stroke: rgba(0, 0, 255, 0.7);
   fill: rgba(70, 70, 116, 0.08);
   fill: rgba(70, 70, 116, 0.08);
 }
 }
-.graph-view .tabs {
-  width: 280px;
-  padding-top: 10px;
-  border-left: 1px solid #444444;
-}
-.graph-view .tabs span {
-  margin-left: 5px;
-  font-size: 15px;
-  font-weight: bold;
-}
 .graph-view .paramVisible {
 .graph-view .paramVisible {
   color: black!important;
   color: black!important;
   font-weight: bold;
   font-weight: bold;

+ 13 - 13
bin/style.less

@@ -1469,14 +1469,25 @@ input[type=checkbox] {
 .graph-view {
 .graph-view {
 	outline: none !important;
 	outline: none !important;
 	.tabs {
 	.tabs {
+		width: 280px;
+		padding-top: 10px;
+		border-left: 1px solid #444444;
 		z-index: @default-layer + 5;
 		z-index: @default-layer + 5;
     	background: #222222;
     	background: #222222;
 		height: 100%;
 		height: 100%;
 		user-select: none;
 		user-select: none;
+
+		span { // title
+			margin-left: 5px;
+			font-size: 15px;
+			font-weight: bold;
+		}
+
 		.tab {
 		.tab {
 			height: 100%;
 			height: 100%;
+			@options-height: max(250px, 25%);
 			.hide-block {
 			.hide-block {
-				height: 70%;
+				height: calc(100% - 5% - @options-height);
 
 
 				#parametersList {
 				#parametersList {
 					height: 100%;
 					height: 100%;
@@ -1553,7 +1564,7 @@ input[type=checkbox] {
 				}
 				}
 			}
 			}
 			.options-block {
 			.options-block {
-				height: 25%;
+				height: @options-height;
 				& > * {
 				& > * {
 					display: block;
 					display: block;
 					margin-bottom: 10px;
 					margin-bottom: 10px;
@@ -1904,17 +1915,6 @@ input[type=checkbox] {
 			}
 			}
 		}
 		}
 	}
 	}
-	.tabs {
-		width: 280px;
-		padding-top: 10px;
-		border-left: 1px solid #444444;
-
-		span { // title
-			margin-left: 5px;
-			font-size: 15px;
-			font-weight: bold;
-		}
-	}
 	.paramVisible {
 	.paramVisible {
 		color: black!important;
 		color: black!important;
 		font-weight: bold;
 		font-weight: bold;