diff --git a/src/csui/src/PlayerUiPanels/VideoSettings.vue b/src/csui/src/PlayerUiPanels/VideoSettings.vue
index e276a65..2139b23 100644
--- a/src/csui/src/PlayerUiPanels/VideoSettings.vue
+++ b/src/csui/src/PlayerUiPanels/VideoSettings.vue
@@ -40,13 +40,26 @@
+
+
+
@@ -59,11 +72,11 @@
+
-
-
@@ -71,7 +84,11 @@
Ratio:
-
+
+
You can enter a ratio in width:height format (e.g. "21:9" or "1:2.39"), or just the factor
@@ -111,7 +128,7 @@
@@ -119,7 +136,12 @@
Cancel
-
Save
+
+
+
+ Add
+ Save
+
@@ -177,6 +199,14 @@
@click="execAction(command)"
>
+
+
+
@@ -593,8 +623,15 @@ export default {
},
deleteAction(actionType) {
- this.settings.active.commands[actionType].splice(this.editModeOptions[actionType].selectedIndex, 1);
- this.cancelEdit();
+ const selectedIndex = this.editModeOptions[actionType].selectedIndex;
+
+ // prevent deleting first item if 'delete' button shows on 'add new' dialog
+ if (selectedIndex === undefined || selectedIndex === null) {
+ return;
+ }
+
+ this.settings.active.commands[actionType].splice(selectedIndex, 1);
+ this.settings.saveWithoutReload();
this.editModeOptions[actionType] = undefined;
},
@@ -670,9 +707,12 @@ export default {
.edit-action-area {
background-color: rgba($blackBg,0.5);
padding: 0.5rem;
-
- .edit-action-area-header {
- border-bottom: 1px solid rgba(255,255,255,0.5);
- }
+ margin-bottom: 2rem;
+}
+.edit-action-area-header {
+ background-color: $primary;
+ color: #000;
+ padding: 0.25rem 0.5rem;
+ padding-top: 0.5rem;
}