mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:15:50 +00:00
Add files via upload
This commit is contained in:
@@ -17,111 +17,118 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr class="header-divider" style="margin-top: 5px; margin-bottom: 10px;">
|
<hr class="header-divider" style="margin-top: 5px; margin-bottom: 10px;">
|
||||||
|
|
||||||
<fieldset class="settings-group" style="padding: 10px; margin-bottom: 10px;">
|
<div id="upper-controls-wrapper">
|
||||||
<legend><i class="fas fa-brain"></i> 中枢决策室</legend>
|
<fieldset class="settings-group" style="padding: 10px; margin-bottom: 10px;">
|
||||||
|
<legend><i class="fas fa-brain"></i> 中枢决策室</legend>
|
||||||
|
|
||||||
<div class="sinan-navigation-deck" style="gap: 5px; margin-bottom: 10px;">
|
<div class="sinan-navigation-deck" style="gap: 5px; margin-bottom: 10px;">
|
||||||
<button class="sinan-nav-item active" data-tab="injection-settings"><i class="fas fa-cogs"></i> 注入设置</button>
|
<button class="sinan-nav-item active" data-tab="injection-settings"><i class="fas fa-cogs"></i> 注入设置</button>
|
||||||
<button class="sinan-nav-item" data-tab="action-center"><i class="fas fa-toolbox"></i> 操作中心</button>
|
<button class="sinan-nav-item" data-tab="action-center"><i class="fas fa-toolbox"></i> 操作中心</button>
|
||||||
<button class="sinan-nav-item" data-tab="ai-template"><i class="fas fa-robot"></i> 指令模板</button>
|
<button class="sinan-nav-item" data-tab="ai-template"><i class="fas fa-robot"></i> 指令模板</button>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="sinan-content-wrapper">
|
|
||||||
<div id="sinan-injection-settings-tab" class="sinan-tab-pane active">
|
|
||||||
<div class="inline-settings-grid">
|
|
||||||
<label for="table-injection-position">注入位置</label>
|
|
||||||
<select id="table-injection-position" class="text_pole">
|
|
||||||
<option value="2">主提示前</option>
|
|
||||||
<option value="0">主提示后</option>
|
|
||||||
<option value="1">聊天内</option>
|
|
||||||
</select>
|
|
||||||
<label for="table-injection-depth">注入深度</label>
|
|
||||||
<input type="number" id="table-injection-depth" class="text_pole" value="3">
|
|
||||||
<label for="table-injection-role">注入角色</label>
|
|
||||||
<select id="table-injection-role" class="text_pole">
|
|
||||||
<option value="0">系统</option>
|
|
||||||
<option value="1">用户</option>
|
|
||||||
<option value="2">助手</option>
|
|
||||||
</select>
|
|
||||||
<label for="batch-filling-threshold">批处理阈值</label>
|
|
||||||
<input type="number" id="batch-filling-threshold" class="text_pole" value="30">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="sinan-content-wrapper">
|
||||||
<div id="sinan-action-center-tab" class="sinan-tab-pane">
|
<div id="sinan-injection-settings-tab" class="sinan-tab-pane active">
|
||||||
<div class="control-block-with-switch" style="margin-bottom: 10px;">
|
<div class="inline-settings-grid">
|
||||||
<label for="table-injection-enabled-toggle">启用表格注入</label>
|
<label for="table-injection-position">注入位置</label>
|
||||||
<label class="toggle-switch">
|
<select id="table-injection-position" class="text_pole">
|
||||||
<input type="checkbox" id="table-injection-enabled" data-setting-key="table_injection_enabled" data-type="boolean">
|
<option value="2">主提示前</option>
|
||||||
<span class="slider"></span>
|
<option value="0">主提示后</option>
|
||||||
</label>
|
<option value="1">聊天内</option>
|
||||||
|
</select>
|
||||||
|
<label for="table-injection-depth">注入深度</label>
|
||||||
|
<input type="number" id="table-injection-depth" class="text_pole" value="3">
|
||||||
|
<label for="table-injection-role">注入角色</label>
|
||||||
|
<select id="table-injection-role" class="text_pole">
|
||||||
|
<option value="0">系统</option>
|
||||||
|
<option value="1">用户</option>
|
||||||
|
<option value="2">助手</option>
|
||||||
|
</select>
|
||||||
|
<label for="batch-filling-threshold">批处理阈值</label>
|
||||||
|
<input type="number" id="batch-filling-threshold" class="text_pole" value="30">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-center-buttons" style="gap: 8px;">
|
|
||||||
<button id="amily2-export-preset-btn" class="menu_button primary small_button interactable"><i class="fas fa-file-export"></i> 导出预设</button>
|
|
||||||
<button id="amily2-export-preset-full-btn" class="menu_button primary small_button interactable"><i class="fas fa-file-archive"></i> 导出备份</button>
|
|
||||||
<button id="amily2-import-preset-btn" class="menu_button secondary small_button interactable"><i class="fas fa-file-upload"></i> 导入预设</button>
|
|
||||||
<button id="amily2-clear-all-tables-btn" class="menu_button danger small_button interactable"><i class="fas fa-trash-alt"></i> 清空内容</button>
|
|
||||||
</div>
|
|
||||||
<p class="notes" style="margin-top: 8px; margin-bottom: 10px;">说明:可以导出不含剧情的“纯净预设”用于分享,或导出包含剧情的“完整备份”用于存档。</p>
|
|
||||||
|
|
||||||
<hr class="section-divider" style="margin: 10px 0;">
|
|
||||||
|
|
||||||
<div class="action-center-buttons" id="theme-action-buttons" style="gap: 8px;">
|
|
||||||
<button id="amily2-import-theme-btn" class="menu_button small_button interactable"><i class="fas fa-palette"></i> 导入主题</button>
|
|
||||||
<button id="amily2-export-theme-btn" class="menu_button small_button interactable"><i class="fas fa-paint-brush"></i> 导出主题</button>
|
|
||||||
<button id="amily2-reset-theme-btn" class="menu_button small_button interactable"><i class="fas fa-undo"></i> 恢复默认</button>
|
|
||||||
</div>
|
|
||||||
<p class="notes" style="margin-top: 8px;">说明:导入下载的主题JSON文件,或将当前的外观导出分享。</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div id="sinan-ai-template-tab" class="sinan-tab-pane">
|
<div id="sinan-action-center-tab" class="sinan-tab-pane">
|
||||||
<fieldset class="settings-group" style="border-style: dashed; padding: 8px; margin-bottom: 10px;">
|
<div class="control-block-with-switch" style="margin-bottom: 10px;">
|
||||||
<legend><i class="fas fa-scroll"></i> 规则提示词</legend>
|
<label for="table-injection-enabled-toggle">启用表格注入</label>
|
||||||
<div class="amily2_settings_block prompt-editor-area">
|
<label class="toggle-switch">
|
||||||
<textarea id="ai-rule-template-editor" class="text_pole" rows="2"></textarea>
|
<input type="checkbox" id="table-injection-enabled" data-setting-key="table_injection_enabled" data-type="boolean">
|
||||||
<div class="editor-buttons-panel">
|
<span class="slider"></span>
|
||||||
<button id="ai-rule-template-save-btn" class="menu_button accent small_button interactable"><i class="fas fa-save"></i> 保存</button>
|
</label>
|
||||||
<button id="ai-rule-template-restore-btn" class="menu_button secondary small_button interactable"><i class="fas fa-undo"></i> 默认</button>
|
</div>
|
||||||
|
<div class="control-block-with-switch" style="margin-bottom: 10px;">
|
||||||
|
<label>填表模式</label>
|
||||||
|
<div class="radio-group">
|
||||||
|
<input type="radio" id="main-api-mode" name="filling-mode" value="main-api" checked>
|
||||||
|
<label for="main-api-mode">原始</label>
|
||||||
|
<input type="radio" id="secondary-api-mode" name="filling-mode" value="secondary-api">
|
||||||
|
<label for="secondary-api-mode">分步</label>
|
||||||
|
<input type="radio" id="optimized-mode" name="filling-mode" value="optimized">
|
||||||
|
<label for="optimized-mode">兼容优化</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
<div class="action-center-buttons" style="gap: 8px;">
|
||||||
|
<button id="amily2-export-preset-btn" class="menu_button primary small_button interactable"><i class="fas fa-file-export"></i> 导出预设</button>
|
||||||
|
<button id="amily2-export-preset-full-btn" class="menu_button primary small_button interactable"><i class="fas fa-file-archive"></i> 导出备份</button>
|
||||||
|
<button id="amily2-import-preset-btn" class="menu_button secondary small_button interactable"><i class="fas fa-file-upload"></i> 导入预设</button>
|
||||||
|
<button id="amily2-clear-all-tables-btn" class="menu_button danger small_button interactable"><i class="fas fa-trash-alt"></i> 清空内容</button>
|
||||||
|
</div>
|
||||||
|
<p class="notes" style="margin-top: 8px; margin-bottom: 10px;">说明:可以导出不含剧情的“纯净预设”用于分享,或导出包含剧情的“完整备份”用于存档。</p>
|
||||||
|
|
||||||
<fieldset class="settings-group" style="border-style: dashed; padding: 8px;">
|
<hr class="section-divider" style="margin: 10px 0;">
|
||||||
<legend><i class="fas fa-tasks"></i> 流程提示词</legend>
|
|
||||||
<div class="amily2_settings_block prompt-editor-area">
|
<div class="action-center-buttons" id="theme-action-buttons" style="gap: 8px;">
|
||||||
<textarea id="ai-flow-template-editor" class="text_pole" rows="2"></textarea>
|
<button id="amily2-import-theme-btn" class="menu_button small_button interactable"><i class="fas fa-palette"></i> 导入主题</button>
|
||||||
<div class="editor-buttons-panel">
|
<button id="amily2-export-theme-btn" class="menu_button small_button interactable"><i class="fas fa-paint-brush"></i> 导出主题</button>
|
||||||
<button id="ai-flow-template-save-btn" class="menu_button accent small_button interactable"><i class="fas fa-save"></i> 保存</button>
|
<button id="amily2-reset-theme-btn" class="menu_button small_button interactable"><i class="fas fa-undo"></i> 恢复默认</button>
|
||||||
<button id="ai-flow-template-restore-btn" class="menu_button secondary small_button interactable"><i class="fas fa-undo"></i> 默认</button>
|
</div>
|
||||||
|
<p class="notes" style="margin-top: 8px;">说明:导入下载的主题JSON文件,或将当前的外观导出分享。</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="sinan-ai-template-tab" class="sinan-tab-pane">
|
||||||
|
<fieldset class="settings-group" style="border-style: dashed; padding: 8px; margin-bottom: 10px;">
|
||||||
|
<legend><i class="fas fa-scroll"></i> 规则提示词</legend>
|
||||||
|
<div class="amily2_settings_block prompt-editor-area">
|
||||||
|
<textarea id="ai-rule-template-editor" class="text_pole" rows="2"></textarea>
|
||||||
|
<div class="editor-buttons-panel">
|
||||||
|
<button id="ai-rule-template-save-btn" class="menu_button accent small_button interactable"><i class="fas fa-save"></i> 保存</button>
|
||||||
|
<button id="ai-rule-template-restore-btn" class="menu_button secondary small_button interactable"><i class="fas fa-undo"></i> 默认</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<hr class="section-divider" style="margin: 10px 0;">
|
<fieldset class="settings-group" style="border-style: dashed; padding: 8px;">
|
||||||
|
<legend><i class="fas fa-tasks"></i> 流程提示词</legend>
|
||||||
|
<div class="amily2_settings_block prompt-editor-area">
|
||||||
|
<textarea id="ai-flow-template-editor" class="text_pole" rows="2"></textarea>
|
||||||
|
<div class="editor-buttons-panel">
|
||||||
|
<button id="ai-flow-template-save-btn" class="menu_button accent small_button interactable"><i class="fas fa-save"></i> 保存</button>
|
||||||
|
<button id="ai-flow-template-restore-btn" class="menu_button secondary small_button interactable"><i class="fas fa-undo"></i> 默认</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
<div id="table-filling-controls" style="display: flex; gap: 10px; align-items: center; justify-content: center;">
|
<hr class="section-divider" style="margin: 10px 0;">
|
||||||
<div class="radio-group" style="display: flex; gap: 10px;">
|
|
||||||
<label title="使用主API进行填表"><input type="radio" name="filling-mode" value="main-api" checked> 主API</label>
|
<div id="table-filling-controls" style="display: flex; gap: 10px; align-items: center; justify-content: center;">
|
||||||
<label title="使用备用API进行填表"><input type="radio" name="filling-mode" value="secondary-api"> 副API</label>
|
<button id="fill-table-now-btn" class="menu_button small_button">立即填表</button>
|
||||||
</div>
|
</div>
|
||||||
<button id="fill-table-now-btn" class="menu_button small_button">立即填表</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<div id="table-log-display" class="hly-log-display" style="margin-top: 10px; margin-bottom: 10px;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<div id="table-log-display" class="hly-log-display" style="margin-top: 10px; margin-bottom: 10px;">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="table-container-wrapper" class="hly-scroll">
|
<div id="all-tables-container" class="hly-scroll">
|
||||||
<div id="all-tables-container">
|
|
||||||
|
|
||||||
<div id="add-table-placeholder" title="敕令新表">
|
<div id="add-table-placeholder" title="敕令新表">
|
||||||
<i class="fas fa-plus"></i>
|
<i class="fas fa-plus"></i>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
211
assets/table.css
211
assets/table.css
@@ -1,13 +1,12 @@
|
|||||||
#amily2_memorisation_forms_panel {
|
#amily2_memorisation_forms_panel {
|
||||||
|
|
||||||
--am2-font-size-base: 14px;
|
|
||||||
--am2-gap-main: 10px;
|
--am2-gap-main: 10px;
|
||||||
--am2-padding-main: 8px 5px;
|
--am2-padding-main: 8px 5px;
|
||||||
|
|
||||||
--am2-container-bg: rgba(0,0,0,0.1);
|
--am2-container-bg: rgba(0,0,0,0.1);
|
||||||
--am2-container-border: 1px solid rgba(255, 255, 255, 0.2);
|
--am2-container-border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
--am2-container-border-radius: 12px;
|
--am2-container-border-radius: 12px;
|
||||||
--am2-container-padding: 10px;
|
--am2-container-padding: 10px 5px;
|
||||||
--am2-container-shadow: inset 0 0 15px rgba(0,0,0,0.2);
|
--am2-container-shadow: inset 0 0 15px rgba(0,0,0,0.2);
|
||||||
|
|
||||||
--am2-title-font-size: 1.1em;
|
--am2-title-font-size: 1.1em;
|
||||||
@@ -20,8 +19,7 @@
|
|||||||
|
|
||||||
--am2-table-bg: rgba(0,0,0,0.2);
|
--am2-table-bg: rgba(0,0,0,0.2);
|
||||||
--am2-table-border: 1px solid rgba(255, 255, 255, 0.25);
|
--am2-table-border: 1px solid rgba(255, 255, 255, 0.25);
|
||||||
--am2-table-cell-padding: 6px 8px;
|
--am2-table-cell-padding: 3px 6px;
|
||||||
--am2-table-cell-font-size: 0.95em;
|
|
||||||
|
|
||||||
--am2-header-bg: rgba(255, 255, 255, 0.1);
|
--am2-header-bg: rgba(255, 255, 255, 0.1);
|
||||||
--am2-header-color: #e0e0e0;
|
--am2-header-color: #e0e0e0;
|
||||||
@@ -51,7 +49,9 @@
|
|||||||
gap: var(--am2-gap-main);
|
gap: var(--am2-gap-main);
|
||||||
padding: var(--am2-padding-main);
|
padding: var(--am2-padding-main);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: var(--am2-font-size-base);
|
}
|
||||||
|
|
||||||
|
#upper-controls-wrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel #all-tables-container {
|
#amily2_memorisation_forms_panel #all-tables-container {
|
||||||
@@ -88,43 +88,36 @@
|
|||||||
margin-bottom: var(--am2-controls-margin-bottom);
|
margin-bottom: var(--am2-controls-margin-bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===================================================================== */
|
|
||||||
/* ================== 【V65.0】最终布局圣旨 - 智能兼容 ================== */
|
|
||||||
/* ===================================================================== */
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel .table-instance-container {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
/* 【V65.0 核心】为表格容器启用水平滚动,作为最终保险 */
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] {
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
background-color: var(--am2-table-bg);
|
background-color: var(--am2-table-bg);
|
||||||
/* 【V65.0 修正】在桌面端,我们依然希望表格能自适应,而不是固定布局 */
|
transition: box-shadow 0.5s ease-in-out;
|
||||||
/* table-layout: fixed; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th,
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th,
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td {
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td {
|
||||||
border: var(--am2-table-border);
|
border: var(--am2-table-border);
|
||||||
padding: var(--am2-table-cell-padding);
|
padding: var(--am2-table-cell-padding);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-size: var(--am2-table-cell-font-size);
|
|
||||||
|
|
||||||
/* 【V65.0 核心】使用更智能的断词策略 */
|
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-wrap: break-word; /* 兼容旧版浏览器 */
|
word-wrap: break-word;
|
||||||
word-break: break-word; /* 优先在单词边界换行 */
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th,
|
||||||
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td {
|
||||||
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th {
|
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th {
|
||||||
background-color: var(--am2-header-bg);
|
background-color: var(--am2-header-bg);
|
||||||
color: var(--am2-header-color);
|
color: var(--am2-header-color);
|
||||||
/* 【V65.0 新增】为表头设置一个最小宽度,保证可读性 */
|
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel .index-col {
|
#amily2_memorisation_forms_panel .index-col {
|
||||||
@@ -132,11 +125,12 @@
|
|||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: var(--am2-index-col-color);
|
color: var(--am2-index-col-color);
|
||||||
/* 【V72.0 谢罪圣旨】直接硬编码最终宽度,不再使用变量 */
|
|
||||||
width: 30px !important;
|
width: 30px !important;
|
||||||
min-width: 30px !important;
|
min-width: 30px !important;
|
||||||
padding: var(--am2-table-cell-padding);
|
padding: var(--am2-table-cell-padding);
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel th[contenteditable="true"] {
|
#amily2_memorisation_forms_panel th[contenteditable="true"] {
|
||||||
@@ -199,7 +193,6 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================== 起居注 (日志) 样式 ================== */
|
|
||||||
#amily2_memorisation_forms_panel .hly-log-display {
|
#amily2_memorisation_forms_panel .hly-log-display {
|
||||||
background: rgba(0,0,0,0.25);
|
background: rgba(0,0,0,0.25);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@@ -495,129 +488,63 @@ input:checked + .slider:before {
|
|||||||
transform: translateX(22px);
|
transform: translateX(22px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===================================================================== */
|
.amily2-context-menu {
|
||||||
/* ================== 【V65.0】最终布局圣旨 - 移动端优化 ================== */
|
display: none;
|
||||||
/* ===================================================================== */
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1001;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0;
|
||||||
|
padding: 2px;
|
||||||
|
background-color: rgba(30, 30, 40, 0.98);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: none;
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
-webkit-backdrop-filter: blur(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.amily2-context-menu.amily2-menu-active {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#amily2_memorisation_forms_panel .amily2-context-menu .menu_button {
|
||||||
|
white-space: nowrap;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
padding: 4px 8px !important;
|
||||||
|
font-size: 0.85em !important;
|
||||||
|
background: transparent !important;
|
||||||
|
transition: background-color 0.2s ease !important;
|
||||||
|
text-align: left !important;
|
||||||
|
font-weight: normal !important;
|
||||||
|
transform: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#amily2_memorisation_forms_panel .amily2-context-menu .menu_button:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.15) !important;
|
||||||
|
transform: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amily2-row-context-menu {
|
||||||
|
top: 0;
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
/* 【V65.0 修正】在移动端,不再需要容器的水平滚动 */
|
#amily2_memorisation_forms_panel {
|
||||||
#amily2_memorisation_forms_panel .table-instance-container {
|
padding: 0;
|
||||||
overflow-x: initial;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"],
|
#upper-controls-wrapper {
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] thead,
|
padding: var(--am2-padding-main);
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] tbody,
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th,
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td,
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] tr {
|
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 【V74.0 核心修正】不再隐藏表头,而是让它也参与到卡片式布局中 */
|
#amily2_memorisation_forms_panel #all-tables-container {
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] thead {
|
padding: 10px 2px;
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] thead tr {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 5px;
|
|
||||||
border: 1px solid var(--am2-header-editable-focus-outline, #79b8ff);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 8px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] th {
|
|
||||||
flex-grow: 1;
|
|
||||||
min-width: 120px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
background-color: var(--am2-header-editable-bg) !important;
|
|
||||||
border: 1px solid var(--am2-header-editable-focus-outline, #79b8ff);
|
|
||||||
border-radius: 5px;
|
|
||||||
padding: 5px 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 【V74.0 新增】默认隐藏移动端编辑按钮 */
|
|
||||||
.mobile-edit-handle {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] tr {
|
|
||||||
border: 1px solid var(--am2-table-border, #444);
|
|
||||||
border-radius: 8px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
background: rgba(0,0,0,0.1);
|
|
||||||
position: relative;
|
|
||||||
padding-top: 35px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td {
|
|
||||||
border: none;
|
|
||||||
border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
|
|
||||||
position: relative;
|
|
||||||
padding-left: 45% !important;
|
|
||||||
text-align: right !important;
|
|
||||||
min-height: 30px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
/* 【V65.0 核心】确保在移动端也能正确断词 */
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
word-wrap: break-word;
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td:before {
|
|
||||||
content: attr(data-label);
|
|
||||||
position: absolute;
|
|
||||||
left: 10px;
|
|
||||||
width: 40%;
|
|
||||||
padding-right: 10px;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-align: left !important;
|
|
||||||
font-weight: bold;
|
|
||||||
color: var(--am2-header-color, #e0e0e0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] td.index-col {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] tr .delete-row-handle {
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
|
||||||
top: 8px;
|
|
||||||
right: 8px;
|
|
||||||
width: 28px;
|
|
||||||
height: 28px;
|
|
||||||
background-color: rgba(255, 82, 82, 0.5) !important;
|
|
||||||
color: white !important;
|
|
||||||
border-radius: 50%;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 28px;
|
|
||||||
font-size: 16px;
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0 !important;
|
|
||||||
border: none;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
#amily2_memorisation_forms_panel table[id^="amily2-table-"] tr .delete-row-handle:before {
|
|
||||||
content: "×";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 【V74.0 新增】只在移动端显示编辑按钮 */
|
|
||||||
#amily2_memorisation_forms_panel .mobile-edit-handle {
|
|
||||||
display: inline-block;
|
|
||||||
color: var(--am2-title-icon-color, #9e8aff);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user