mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
fix my avatar tab too width push the sidebar
This commit is contained in:
@@ -19,6 +19,7 @@ html {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
overflow: hidden auto;
|
overflow: hidden auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
min-width: 0;
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
height: calc(100vh - 20px);
|
height: calc(100vh - 20px);
|
||||||
margin: 10px 0 10px 0;
|
margin: 10px 0 10px 0;
|
||||||
@@ -358,4 +359,6 @@ i.x-status-icon.red {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
]"
|
]"
|
||||||
@layout="handleLayout">
|
@layout="handleLayout">
|
||||||
<template #default="{ layout }">
|
<template #default="{ layout }">
|
||||||
<ResizablePanel :default-size="mainDefaultSize" :order="1" :size-unit="'px'">
|
<ResizablePanel :default-size="mainDefaultSize" :order="1">
|
||||||
<RouterView v-slot="{ Component }">
|
<RouterView v-slot="{ Component }">
|
||||||
<KeepAlive exclude="ChartsInstance, ChartsMutual">
|
<KeepAlive exclude="ChartsInstance, ChartsMutual">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
@@ -46,7 +46,6 @@
|
|||||||
:collapsed-size="0"
|
:collapsed-size="0"
|
||||||
collapsible
|
collapsible
|
||||||
:order="2"
|
:order="2"
|
||||||
:size-unit="'px'"
|
|
||||||
:style="{ maxWidth: `${asideMaxPx}px` }">
|
:style="{ maxWidth: `${asideMaxPx}px` }">
|
||||||
<Sidebar></Sidebar>
|
<Sidebar></Sidebar>
|
||||||
</ResizablePanel>
|
</ResizablePanel>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="x-container" ref="playerListRef">
|
<div class="x-container" ref="playerListRef">
|
||||||
<div class="flex h-full min-h-0 flex-col overflow-auto">
|
<div class="flex h-full min-h-0 flex-col overflow-y-auto overflow-x-hidden">
|
||||||
<div
|
<div
|
||||||
v-if="currentInstanceWorld.ref.id"
|
v-if="currentInstanceWorld.ref.id"
|
||||||
ref="playerListHeaderRef"
|
ref="playerListHeaderRef"
|
||||||
style="display: flex; height: 120px"
|
style="display: flex; min-height: 120px"
|
||||||
class="mb-7">
|
class="mb-7">
|
||||||
<img
|
<img
|
||||||
:src="currentInstanceWorld.ref.thumbnailImageUrl"
|
:src="currentInstanceWorld.ref.thumbnailImageUrl"
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
<div style="margin-top: 5px">
|
<div style="margin-top: 5px">
|
||||||
<span
|
<span
|
||||||
v-show="currentInstanceWorld.ref.name !== currentInstanceWorld.ref.description"
|
v-show="currentInstanceWorld.ref.name !== currentInstanceWorld.ref.description"
|
||||||
class="inline-block max-w-full truncate align-middle text-xs"
|
class="inline-block max-w-full align-middle text-xs break-words"
|
||||||
v-text="currentInstanceWorld.ref.description"></span>
|
v-text="currentInstanceWorld.ref.description"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -223,11 +223,18 @@
|
|||||||
loading: false
|
loading: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
function showChatboxBlacklistDialog() {
|
function showChatboxBlacklistDialog() {
|
||||||
const D = chatboxBlacklistDialog.value;
|
const D = chatboxBlacklistDialog.value;
|
||||||
D.visible = true;
|
D.visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param val
|
||||||
|
*/
|
||||||
function selectCurrentInstanceRow(val) {
|
function selectCurrentInstanceRow(val) {
|
||||||
if (val === null) {
|
if (val === null) {
|
||||||
return;
|
return;
|
||||||
@@ -240,18 +247,32 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param userId
|
||||||
|
*/
|
||||||
async function deleteChatboxUserBlacklist(userId) {
|
async function deleteChatboxUserBlacklist(userId) {
|
||||||
chatboxUserBlacklist.value.delete(userId);
|
chatboxUserBlacklist.value.delete(userId);
|
||||||
await saveChatboxUserBlacklist();
|
await saveChatboxUserBlacklist();
|
||||||
getCurrentInstanceUserList();
|
getCurrentInstanceUserList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param user
|
||||||
|
*/
|
||||||
async function addChatboxUserBlacklist(user) {
|
async function addChatboxUserBlacklist(user) {
|
||||||
chatboxUserBlacklist.value.set(user.id, user.displayName);
|
chatboxUserBlacklist.value.set(user.id, user.displayName);
|
||||||
await saveChatboxUserBlacklist();
|
await saveChatboxUserBlacklist();
|
||||||
getCurrentInstanceUserList();
|
getCurrentInstanceUserList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param a
|
||||||
|
* @param b
|
||||||
|
* @param field
|
||||||
|
*/
|
||||||
function sortAlphabetically(a, b, field) {
|
function sortAlphabetically(a, b, field) {
|
||||||
if (!a[field] || !b[field]) return 0;
|
if (!a[field] || !b[field]) return 0;
|
||||||
return a[field].toLowerCase().localeCompare(b[field].toLowerCase());
|
return a[field].toLowerCase().localeCompare(b[field].toLowerCase());
|
||||||
|
|||||||
Reference in New Issue
Block a user