Commit e1cd921f authored by Jeff nan's avatar Jeff nan

feat

parent 96409f99
This diff is collapsed.
...@@ -206,12 +206,26 @@ body { ...@@ -206,12 +206,26 @@ body {
z-index: 200; z-index: 200;
} }
/* 点读按钮样式 */ /* AI翻译 / 点读:右下角 */
.point-read-btn { .mode-actions {
position: absolute; position: absolute;
top: 20px;
right: 20px; right: 20px;
bottom: 20px;
z-index: 100; z-index: 100;
display: flex;
align-items: center;
gap: 12px;
}
@media (max-width: 480px) {
.mode-actions {
flex-direction: column;
align-items: flex-end;
}
}
/* 点读按钮样式 */
.point-read-btn {
padding: 10px 20px; padding: 10px 20px;
border: none; border: none;
border-radius: 25px; border-radius: 25px;
...@@ -240,10 +254,6 @@ body { ...@@ -240,10 +254,6 @@ body {
/* AI翻译按钮样式 */ /* AI翻译按钮样式 */
.translate-btn { .translate-btn {
position: absolute;
top: 20px;
right: 120px;
z-index: 100;
padding: 10px 20px; padding: 10px 20px;
border: none; border: none;
border-radius: 25px; border-radius: 25px;
......
...@@ -26,16 +26,7 @@ ...@@ -26,16 +26,7 @@
<div v-else class="book-container"> <div v-else class="book-container">
<!-- 点读按钮 --> <div class="mode-actions">
<button
class="point-read-btn"
:class="{ active: isPointReadMode }"
@click="togglePointReadMode"
title="点读模式"
>
{{ isPointReadMode ? '退出点读' : '点读' }}
</button>
<!-- AI翻译按钮 --> <!-- AI翻译按钮 -->
<button <button
class="translate-btn" class="translate-btn"
...@@ -46,6 +37,17 @@ ...@@ -46,6 +37,17 @@
{{ isTranslateMode ? '退出翻译' : 'AI翻译' }} {{ isTranslateMode ? '退出翻译' : 'AI翻译' }}
</button> </button>
<!-- 点读按钮 -->
<button
class="point-read-btn"
:class="{ active: isPointReadMode }"
@click="togglePointReadMode"
title="点读模式"
>
{{ isPointReadMode ? '退出点读' : '点读' }}
</button>
</div>
<!-- 图片容器 --> <!-- 图片容器 -->
<div class="image-container" :class="{ 'multi-page-container': currentPages.length > 1 }"> <div class="image-container" :class="{ 'multi-page-container': currentPages.length > 1 }">
<!-- 多页显示 --> <!-- 多页显示 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment