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,25 +26,27 @@ ...@@ -26,25 +26,27 @@
<div v-else class="book-container"> <div v-else class="book-container">
<!-- 点读按钮 --> <div class="mode-actions">
<button <!-- AI翻译按钮 -->
class="point-read-btn" <button
:class="{ active: isPointReadMode }" class="translate-btn"
@click="togglePointReadMode" :class="{ active: isTranslateMode }"
title="点读模式" @click="toggleTranslateMode"
> title="AI翻译模式"
{{ isPointReadMode ? '退出点读' : '点读' }} >
</button> {{ isTranslateMode ? '退出翻译' : 'AI翻译' }}
</button>
<!-- AI翻译按钮 -->
<button <!-- 点读按钮 -->
class="translate-btn" <button
:class="{ active: isTranslateMode }" class="point-read-btn"
@click="toggleTranslateMode" :class="{ active: isPointReadMode }"
title="AI翻译模式" @click="togglePointReadMode"
> title="点读模式"
{{ isTranslateMode ? '退出翻译' : 'AI翻译' }} >
</button> {{ 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