Browse Source

[css] Fix project settings scrolling

Clément Espeute 4 days ago
parent
commit
9c23526fff
2 changed files with 43 additions and 8 deletions
  1. 21 4
      bin/style.css
  2. 22 4
      bin/style.less

+ 21 - 4
bin/style.css

@@ -3667,6 +3667,12 @@ div.gradient-box {
 .project-settings {
 .project-settings {
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
+  display: flex;
+  flex-direction: column;
+}
+.project-settings,
+.project-settings * {
+  box-sizing: border-box;
 }
 }
 .project-settings h1 {
 .project-settings h1 {
   margin: 5px 5px 5px 10px;
   margin: 5px 5px 5px 10px;
@@ -3680,11 +3686,13 @@ div.gradient-box {
   align-self: center;
   align-self: center;
 }
 }
 .project-settings .body {
 .project-settings .body {
-  width: 100%;
-  height: 100%;
+  min-height: 0;
+  flex-grow: 1;
   display: flex;
   display: flex;
 }
 }
 .project-settings .body .left-panel {
 .project-settings .body .left-panel {
+  display: flex;
+  flex-direction: column;
   flex: 0.5;
   flex: 0.5;
   padding: 10px;
   padding: 10px;
 }
 }
@@ -3701,11 +3709,20 @@ div.gradient-box {
 .project-settings .body .right-panel {
 .project-settings .body .right-panel {
   flex: 1;
   flex: 1;
   padding: 10px;
   padding: 10px;
+  min-height: 0;
+  overflow-y: auto;
+  scrollbar-gutter: stable;
+}
+.project-settings .body .array {
+  min-height: 0;
+  display: flex;
+  flex-direction: column;
 }
 }
 .project-settings .body .array .rows {
 .project-settings .body .array .rows {
   min-height: 20px;
   min-height: 20px;
   max-height: 750px;
   max-height: 750px;
-  overflow-y: scroll;
+  overflow-y: auto;
+  scrollbar-gutter: stable;
   width: 100%;
   width: 100%;
   background: #3f3f3f;
   background: #3f3f3f;
   border-radius: 2px 2px 0px 2px;
   border-radius: 2px 2px 0px 2px;
@@ -3737,7 +3754,7 @@ div.gradient-box {
   display: none;
   display: none;
 }
 }
 .project-settings .body .array .buttons {
 .project-settings .body .array .buttons {
-  float: right;
+  align-self: flex-end;
   padding: 5px 10px 5px 10px;
   padding: 5px 10px 5px 10px;
   border-radius: 0px 0px 2px 2px;
   border-radius: 0px 0px 2px 2px;
   background: #3f3f3f;
   background: #3f3f3f;

+ 22 - 4
bin/style.less

@@ -4293,6 +4293,13 @@ div.gradient-box {
 	width: 100%;
 	width: 100%;
 	height: 100%;
 	height: 100%;
 
 
+	display: flex;
+	flex-direction: column;
+
+	&, * {
+		box-sizing: border-box;
+	}
+
 	h1 {
 	h1 {
 		margin: 5px 5px 5px 10px;
 		margin: 5px 5px 5px 10px;
 	}
 	}
@@ -4308,11 +4315,14 @@ div.gradient-box {
 	}
 	}
 
 
 	.body {
 	.body {
-		width: 100%;
-		height:100%;
+		min-height: 0;
+		flex-grow: 1;
 		display: flex;
 		display: flex;
 
 
 		.left-panel {
 		.left-panel {
+			display: flex;
+			flex-direction: column;
+
 			flex: 0.5;
 			flex: 0.5;
 			padding: 10px;
 			padding: 10px;
 
 
@@ -4333,13 +4343,21 @@ div.gradient-box {
 		.right-panel {
 		.right-panel {
 			flex: 1;
 			flex: 1;
 			padding: 10px;
 			padding: 10px;
+			min-height: 0;
+			overflow-y: auto;
+			scrollbar-gutter: stable;
 		}
 		}
 
 
 		.array {
 		.array {
+			min-height: 0;
+			display: flex;
+			flex-direction: column;
 			.rows {
 			.rows {
+
 				min-height: 20px;
 				min-height: 20px;
 				max-height: 750px;
 				max-height: 750px;
-				overflow-y: scroll;
+				overflow-y: auto;
+				scrollbar-gutter: stable;
 				width: 100%;
 				width: 100%;
 				background: #3f3f3f;
 				background: #3f3f3f;
 				border-radius: 2px 2px 0px 2px;
 				border-radius: 2px 2px 0px 2px;
@@ -4378,7 +4396,7 @@ div.gradient-box {
 			}
 			}
 
 
 			.buttons {
 			.buttons {
-				float: right;
+				align-self: flex-end;
 				padding: 5px 10px 5px 10px;
 				padding: 5px 10px 5px 10px;
 				border-radius: 0px 0px 2px 2px;
 				border-radius: 0px 0px 2px 2px;
 				background: #3f3f3f;
 				background: #3f3f3f;