Browse Source

fix(AdvancedTable): Table header and footer responsiveness improvements

Owen Diffey 3 years ago
parent
commit
c1fd1bd305
1 changed files with 29 additions and 10 deletions
  1. 29 10
      frontend/src/components/AdvancedTable.vue

+ 29 - 10
frontend/src/components/AdvancedTable.vue

@@ -2304,19 +2304,29 @@ export default {
 		background-color: var(--white);
 	}
 
-	.table-header > div {
-		display: flex;
-		flex-direction: row;
+	.table-header {
+		& > div {
+			display: flex;
+			flex-direction: row;
 
-		> span > .control {
-			margin: 5px;
+			> span > .control {
+				margin: 5px;
+			}
+
+			.filters-indicator {
+				line-height: 46px;
+				display: flex;
+				align-items: center;
+				column-gap: 4px;
+			}
 		}
 
-		.filters-indicator {
-			line-height: 46px;
-			display: flex;
-			align-items: center;
-			column-gap: 4px;
+		@media screen and (max-width: 400px) {
+			flex-direction: column;
+
+			& > div {
+				justify-content: center;
+			}
 		}
 	}
 
@@ -2343,6 +2353,15 @@ export default {
 				top: 18px;
 			}
 		}
+
+		@media screen and (max-width: 600px) {
+			flex-direction: column;
+
+			.page-controls,
+			.page-size > .control {
+				justify-content: center;
+			}
+		}
 	}
 
 	.table-no-results {