Big UI overhaul

Moved tabs to bottom nav on mobile
Added actions tab
Conditional benefits on skills/saves show on stats tab
This commit is contained in:
Stefan Zermatten
2022-11-22 20:51:21 +02:00
parent 9741d1d56c
commit 63bcf023ee
15 changed files with 403 additions and 148 deletions

View File

@@ -102,9 +102,12 @@
let stackLength = this.$store.state.dialogStack.dialogs.length - offset;
if (stackLength){
let topDialog = this.$refs[stackLength - 1][0];
return topDialog.$el.querySelector(`[data-id='${elementId}']`);
// First look in the active window, then look elsewhere
return topDialog.$el.querySelector(`.v-window-item--active [data-id='${elementId}']`) ??
topDialog.$el.querySelector(`[data-id='${elementId}']`);
} else {
return document.querySelector(`[data-id='${elementId}']`);
return document.querySelector(`.v-window-item--active [data-id='${elementId}']`) ??
document.querySelector(`[data-id='${elementId}']`);
}
},
enter(target, done){