pref: UpdateLog page adjust mobile

This commit is contained in:
KUN1007 2023-10-23 00:40:05 +08:00
parent 7c90e9f824
commit 1e4537eaa7
2 changed files with 39 additions and 32 deletions

View file

@ -6,25 +6,21 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
<template> <template>
<div class="root"> <div class="root">
<!-- 内容区容器 -->
<div class="container"> <div class="container">
<!-- 内容区 -->
<div class="content"> <div class="content">
<!-- 下个版本计划更新 --> <!-- Next Version-->
<div class="next-ver"> <div class="next-ver">
<!-- 标题 -->
<div class="title">{{ $tm('update.next') }}</div> <div class="title">{{ $tm('update.next') }}</div>
<Next /> <Next />
</div> </div>
<!-- 历史版本 -->
<!-- History Version -->
<div class="history-ver"> <div class="history-ver">
<!-- 标题 -->
<div class="title">{{ $tm('update.history') }}</div> <div class="title">{{ $tm('update.history') }}</div>
<!-- 历史更新的内容 -->
<History /> <History />
</div> </div>
</div> </div>
<!-- 版权 -->
<KUNGalgameFooter style="display: block" /> <KUNGalgameFooter style="display: block" />
</div> </div>
</div> </div>
@ -32,23 +28,21 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
<style lang="scss" scoped> <style lang="scss" scoped>
.root { .root {
height: 100vh; height: calc(100vh - 65px);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-width: 1000px; min-width: 1000px;
min-height: 650px; min-height: 650px;
} }
/* 内容区容器 */
.container { .container {
/* 固定宽高 */ height: 60vh;
height: 500px; width: 80vw;
width: 900px; max-height: 500px;
/* 相对于版权定位 */ max-width: 900px;
position: relative; position: relative;
/* 居中 */
margin: auto; margin: auto;
background-color: var(--kungalgame-trans-white-5); background-color: var(--kungalgame-trans-white-5);
/* 模糊背景 */
backdrop-filter: blur(5px); backdrop-filter: blur(5px);
border-radius: 7px; border-radius: 7px;
display: flex; display: flex;
@ -59,17 +53,17 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
border: 1px solid var(--kungalgame-blue-1); border: 1px solid var(--kungalgame-blue-1);
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
/* 内容区 */
.content { .content {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
} }
/* 下个版本计划更新 */
.next-ver { .next-ver {
width: 50%; width: 50%;
} }
/* 标题 */
.title { .title {
height: 40px; height: 40px;
font-size: 27px; font-size: 27px;
@ -78,9 +72,28 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* 历史版本 */
.history-ver { .history-ver {
height: 100%; height: 100%;
width: 50%; width: 50%;
} }
@media (max-width: 700px) {
.root {
min-width: 100%;
min-height: 100%;
}
.container {
height: 100%;
width: 95%;
max-height: 100%;
}
.content {
flex-direction: column;
}
.next-ver,
.history-ver {
width: 100%;
}
}
</style> </style>

View file

@ -14,16 +14,12 @@ onBeforeMount(async () => {
<template> <template>
<div class="article-history"> <div class="article-history">
<!-- 历史更新列表 -->
<ul class="history-list" v-if="topics.length"> <ul class="history-list" v-if="topics.length">
<!-- 单个项目 -->
<li v-for="kun in topics" :key="kun.upid"> <li v-for="kun in topics" :key="kun.upid">
<!-- 更新内容 -->
<!-- <div v-for="yuyu in kun.describe" :key="yuyu.index"> -->
<div> <div>
<p>{{ kun.description }}</p> <p>{{ kun.description }}</p>
</div> </div>
<!-- 更新时间和版本 --> <!-- update time and version -->
<div class="time"> <div class="time">
<span>{{ kun.time }} - Version {{ kun.version }}</span> <span>{{ kun.time }} - Version {{ kun.version }}</span>
</div> </div>
@ -33,20 +29,19 @@ onBeforeMount(async () => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
/* 历史更新的内容 */
.article-history { .article-history {
border-left: 1px solid var(--kungalgame-blue-4); border-left: 1px solid var(--kungalgame-blue-4);
height: 75%; height: 75%;
padding: 10px; padding: 10px;
} }
/* 历史更新列表 */
.history-list { .history-list {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* y 轴溢出滚动 */
overflow-y: scroll; overflow-y: scroll;
&::-webkit-scrollbar { &::-webkit-scrollbar {
display: inline; display: inline;
width: 4px; width: 4px;
@ -56,12 +51,11 @@ onBeforeMount(async () => {
background: var(--kungalgame-blue-4); background: var(--kungalgame-blue-4);
border-radius: 2px; border-radius: 2px;
} }
/* 兼容火狐 */
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: var(--kungalgame-blue-4) var(--kungalgame-blue-1); /* Firefox 64+ */ scrollbar-color: var(--kungalgame-blue-4) var(--kungalgame-blue-1); /* Firefox 64+ */
} }
/* 单个更新历史 */
li { li {
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
@ -72,11 +66,11 @@ li {
margin-top: 10px; margin-top: 10px;
} }
} }
/* 单条更新内容 */
p { p {
margin: 5px 0; margin: 5px 0;
} }
/* 更新时间和版本 */
.time { .time {
display: flex; display: flex;
justify-content: end; justify-content: end;