Browse Source

Improved responsiveness of modal footer buttons

Kristian Vos 3 years ago
parent
commit
a97ea1b981
2 changed files with 3 additions and 13 deletions
  1. 3 10
      frontend/src/components/Modal.vue
  2. 0 3
      frontend/src/components/modals/EditSong.vue

+ 3 - 10
frontend/src/components/Modal.vue

@@ -89,25 +89,18 @@ p {
 }
 
 .modal-card-foot {
-	*:not(:last-child) {
-		margin-right: 10px;
-	}
+	overflow: auto;
 
 	& > div {
 		display: flex;
 		flex-grow: 1;
-		div:not(:first-of-type) {
-			margin-left: 10px;
-		}
+		column-gap: 16px;
 	}
 
 	.right {
 		margin-left: auto;
 		justify-content: flex-end;
-
-		*:not(:last-child) {
-			margin-right: 5px;
-		}
+		column-gap: 16px;
 	}
 }
 </style>

+ 0 - 3
frontend/src/components/modals/EditSong.vue

@@ -1641,9 +1641,6 @@ export default {
 		}
 
 		.modal-card-foot {
-			div div {
-				margin-right: 5px;
-			}
 			.right {
 				display: flex;
 				margin-left: auto;