mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
56ae76e994
commit
bb028fda00
3 changed files with 28 additions and 2 deletions
|
|
@ -110,6 +110,10 @@ const advancedCustomize = prefer.model('world.room.advancedCustomize');
|
|||
|
||||
function changeImageType(k: string, type: string) {
|
||||
emit('update', k, { ...props.options[k], type, driveFileId: type === '_custom_' ? props.options[k].driveFileId : null });
|
||||
|
||||
if (type === '_custom_') {
|
||||
changeImage(k);
|
||||
}
|
||||
}
|
||||
|
||||
async function changeImage(k: string) {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ const emit = defineEmits<{
|
|||
overscroll-behavior: contain;
|
||||
border-radius: 12px;
|
||||
background: var(--MI_THEME-panel);
|
||||
contain: content;
|
||||
}
|
||||
|
||||
.root.isMobile {
|
||||
|
|
@ -71,6 +72,7 @@ const emit = defineEmits<{
|
|||
overscroll-behavior: contain;
|
||||
border-radius: 16px 16px 0 0;
|
||||
background: var(--MI_THEME-panel);
|
||||
contain: content;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
|
|
|||
|
|
@ -114,7 +114,16 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<i class="ti ti-info-circle"></i>
|
||||
</template>
|
||||
|
||||
test
|
||||
<div class="_gaps_s">
|
||||
<div v-if="room.description">
|
||||
<Mfm :text="room.description" :isNote="false"/>
|
||||
</div>
|
||||
<div v-else style="opacity: 0.5;">{{ i18n.ts.noDescription }}</div>
|
||||
|
||||
<MkA :to="`${userPage(room.user)}`" :behavior="'window'">
|
||||
<MkUserCardMini :user="room.user" :withChart="false"/>
|
||||
</MkA>
|
||||
</div>
|
||||
</XOverlayPanel>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -147,6 +156,8 @@ import { miLocalStorage } from '@/local-storage.js';
|
|||
import { FURNITURE_UI_DEFS } from '@/world/room/furniture-ui-defs.js';
|
||||
import { Multiplayer } from '@/world/room/multiplayer.js';
|
||||
import { $i } from '@/i.js';
|
||||
import { userPage } from '@/filters/user.js';
|
||||
import MkUserCardMini from '@/components/MkUserCardMini.vue';
|
||||
|
||||
const roomSpecVersion = 0;
|
||||
|
||||
|
|
@ -161,10 +172,19 @@ function resize() {
|
|||
controller.resize();
|
||||
}
|
||||
|
||||
const isRoomSettingsOpen = ref(false);
|
||||
const isModified = ref(false);
|
||||
|
||||
const isRoomSettingsOpen = ref(false);
|
||||
const isRoomInfoOpen = ref(false);
|
||||
const isFurnitureSettingsOpen = ref(false);
|
||||
|
||||
watch(isFurnitureSettingsOpen, () => {
|
||||
if (isFurnitureSettingsOpen.value) {
|
||||
isRoomSettingsOpen.value = false;
|
||||
isRoomInfoOpen.value = false;
|
||||
}
|
||||
});
|
||||
|
||||
const isMyRoom = computed(() => props.room.userId === $i?.id);
|
||||
const isMobile = deviceKind === 'smartphone' || deviceKind === 'tablet';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue