fix: 🐛 Show title on mobile if there's no tab buttons

This commit is contained in:
ThatOneCalculator 2022-09-09 15:04:31 -07:00
parent 51b259a3bb
commit f7ed1b77cc
3 changed files with 3 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.118.1-calc.2-rc.24",
"version": "12.118.1-calc.2-rc.25",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -10,7 +10,7 @@
<div class="title">
<MkUserName v-if="metadata.userName" :user="metadata.userName" :nowrap="true" class="title"/>
<div v-else-if="!narrow && metadata.title" class="title">{{ metadata.title }}</div>
<div v-else-if="metadata.title && !(tabs != null && tabs.length > 0 && narrow)" class="title">{{ metadata.title }}</div>
<div v-if="!narrow && metadata.subtitle" class="subtitle">
{{ metadata.subtitle }}
</div>

View File

@ -28,7 +28,6 @@
<option value="remote">{{ i18n.ts.remote }}</option>
</MkRadios>
</div>
<XUserList v-if="searchQuery" ref="searchEl" class="_gap" :pagination="searchPagination"/>
</MkSpacer>
</swiper-slide>
@ -59,16 +58,9 @@ const props = defineProps<{
tag?: string;
}>();
let featured = $ref('featured');
const tabs = ['featured', 'users', 'search'];
let tab = $computed({
get: () => featured,
set: (x) => {
syncSlide(tabs.indexOf(x));
},
});
let tab = $ref('featured');
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
let searchQuery = $ref(null);
let searchOrigin = $ref('combined');