fix: 🐛 Show title on mobile if there's no tab buttons
This commit is contained in:
parent
51b259a3bb
commit
f7ed1b77cc
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.118.1-calc.2-rc.24",
|
"version": "12.118.1-calc.2-rc.25",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<MkUserName v-if="metadata.userName" :user="metadata.userName" :nowrap="true" 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">
|
<div v-if="!narrow && metadata.subtitle" class="subtitle">
|
||||||
{{ metadata.subtitle }}
|
{{ metadata.subtitle }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
<option value="remote">{{ i18n.ts.remote }}</option>
|
<option value="remote">{{ i18n.ts.remote }}</option>
|
||||||
</MkRadios>
|
</MkRadios>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<XUserList v-if="searchQuery" ref="searchEl" class="_gap" :pagination="searchPagination"/>
|
<XUserList v-if="searchQuery" ref="searchEl" class="_gap" :pagination="searchPagination"/>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</swiper-slide>
|
</swiper-slide>
|
||||||
|
@ -59,16 +58,9 @@ const props = defineProps<{
|
||||||
tag?: string;
|
tag?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let featured = $ref('featured');
|
|
||||||
const tabs = ['featured', 'users', 'search'];
|
const tabs = ['featured', 'users', 'search'];
|
||||||
|
|
||||||
let tab = $computed({
|
let tab = $ref('featured');
|
||||||
get: () => featured,
|
|
||||||
set: (x) => {
|
|
||||||
syncSlide(tabs.indexOf(x));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
||||||
let searchQuery = $ref(null);
|
let searchQuery = $ref(null);
|
||||||
let searchOrigin = $ref('combined');
|
let searchOrigin = $ref('combined');
|
||||||
|
|
Loading…
Reference in New Issue