mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
Compare commits
2 Commits
ffa3b09bc4
...
c922f8358a
| Author | SHA1 | Date | |
|---|---|---|---|
| c922f8358a | |||
| a8d43fae13 |
@@ -95,7 +95,6 @@
|
||||
<Suspense>
|
||||
<TempComponent>
|
||||
<NLayoutContent>
|
||||
<NGlobalStyle />
|
||||
<NElement style="height: 100vh;">
|
||||
<ViewerLayout v-if="layout == 'viewer'" />
|
||||
<ManageLayout v-else-if="layout == 'manage'" />
|
||||
|
||||
@@ -43,7 +43,7 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="height: 100vh;">
|
||||
<div class="obs-container">
|
||||
<RouterView v-slot="{ Component }">
|
||||
<KeepAlive>
|
||||
<Suspense>
|
||||
@@ -60,3 +60,18 @@ onUnmounted(() => {
|
||||
</RouterView>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.obs-container {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 确保OBS中不出现滚动条 */
|
||||
body {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -259,6 +259,7 @@ onUnmounted(() => {
|
||||
width: 100%;
|
||||
min-height: 150px; /* 增加最小高度 */
|
||||
min-width: 250px; /* 增加最小宽度 */
|
||||
max-height: 100vh; /* 确保在OBS中不超出视口高度 */
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(245, 245, 250, 0.85) 100%);
|
||||
border-radius: 16px; /* 更大的圆角 */
|
||||
color: #333;
|
||||
@@ -406,7 +407,7 @@ onUnmounted(() => {
|
||||
/* 歌曲列表 */
|
||||
.fresh-request-list-container {
|
||||
flex: 1; /* 占据剩余空间 */
|
||||
overflow: hidden;
|
||||
overflow: hidden !important; /* 强制隐藏溢出 */
|
||||
padding: 0 12px; /* 调整左右内边距 */
|
||||
margin-bottom: 8px;
|
||||
position: relative; /* 为空状态居中 */
|
||||
|
||||
@@ -1255,7 +1255,7 @@ function getIndexStyle(status: QueueStatus): CSSProperties {
|
||||
<template #trigger>
|
||||
{{ queueData.user?.name }}
|
||||
</template>
|
||||
UID: {{ queueData.user?.uid ?? 'N/A' }}
|
||||
{{ queueData.user?.uid ? `UID: ${queueData.user?.uid}` : `OpenID: ${queueData.user?.oid}` }}
|
||||
</NTooltip>
|
||||
</NText>
|
||||
<!-- 粉丝牌 -->
|
||||
@@ -1264,7 +1264,6 @@ function getIndexStyle(status: QueueStatus): CSSProperties {
|
||||
size="tiny"
|
||||
round
|
||||
:bordered="false"
|
||||
:color="{ color: '#f0f0f0', textColor: '#555' }"
|
||||
style="padding: 0 5px 0 0;"
|
||||
>
|
||||
<NTag
|
||||
@@ -1597,19 +1596,19 @@ function getIndexStyle(status: QueueStatus): CSSProperties {
|
||||
v-model:checked="settings.needJianzhang"
|
||||
@update:checked="updateSettings"
|
||||
>
|
||||
允许舰长
|
||||
需要舰长
|
||||
</NCheckbox>
|
||||
<NCheckbox
|
||||
v-model:checked="settings.needTidu"
|
||||
@update:checked="updateSettings"
|
||||
>
|
||||
允许提督
|
||||
需要提督
|
||||
</NCheckbox>
|
||||
<NCheckbox
|
||||
v-model:checked="settings.needZongdu"
|
||||
@update:checked="updateSettings"
|
||||
>
|
||||
允许总督
|
||||
需要总督
|
||||
</NCheckbox>
|
||||
</NSpace>
|
||||
</NSpace>
|
||||
|
||||
Reference in New Issue
Block a user