Небольшие улучшения UI

This commit is contained in:
Book Pauk
2022-12-17 20:49:39 +07:00
parent d04851af72
commit 07f5146534

View File

@@ -20,10 +20,10 @@
</div>
<q-btn-group v-show="!initStep" class="button-group row no-wrap">
<q-btn class="button" dense stretch @click="showNext">
<q-icon style="top: -6px" name="la la-angle-down" dense size="22px" />
<q-icon style="top: -2px" name="la la-angle-down" dense size="22px" />
</q-btn>
<q-btn class="button" dense stretch @click="showPrev">
<q-icon style="top: -4px" class="icon" name="la la-angle-up" dense size="22px" />
<q-icon name="la la-angle-up" dense size="22px" />
</q-btn>
</q-btn-group>
</div>
@@ -108,10 +108,15 @@ class SearchPage {
this.header = 'Поиск в тексте';
await this.$nextTick();
this.$refs.input.focus();
this.focusInput();
this.$refs.input.select();
}
focusInput() {
if (!this.$root.isMobileDevice)
this.$refs.input.focus();
}
get foundText() {
if (this.foundList.length && this.foundCur >= 0)
return `${this.foundCur + 1}/${this.foundList.length}`;
@@ -149,7 +154,8 @@ class SearchPage {
} else {
this.$emit('stop-text-search');
}
this.$refs.input.focus();
this.focusInput();
}
showPrev() {
@@ -165,7 +171,8 @@ class SearchPage {
} else {
this.$emit('stop-text-search');
}
this.$refs.input.focus();
this.focusInput();
}
close() {