diff --git a/src/main/export-html-template.ts b/src/main/export-html-template.ts
index 34157ba..9237a45 100644
--- a/src/main/export-html-template.ts
+++ b/src/main/export-html-template.ts
@@ -306,6 +306,10 @@ body {
opacity: 1;
transform: translate(0, -50%);
}
+@media (hover: none) {
+ .locate-all { opacity: 1; pointer-events: auto; }
+ .locate-label { display: none; }
+}
.message.located .bubble { animation: locate-message 1.5s ease-out; }
@keyframes locate-message {
0%, 32% { outline: 3px solid #36a477; outline-offset: 3px; }
@@ -376,6 +380,14 @@ body {
.sent .bubble { background: var(--mine); border-color: #c7e6d4; border-radius: 18px 10px 18px 18px; }
.sender { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.content { line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
+.search-highlight {
+ border-radius: 3px;
+ padding: 0 1px;
+ background: #ffe58f;
+ color: inherit;
+ box-decoration-break: clone;
+ -webkit-box-decoration-break: clone;
+}
.audio-wrap { width: 260px; max-width: 100%; min-width: 0; }
.audio { display: block; width: 100%; max-width: 100%; height: 38px; }
.media-status {
@@ -596,7 +608,13 @@ body {
box-shadow: none;
}
.controls { grid-column: 2; min-width: 0; justify-content: flex-start; }
- .controls input[type=search] { width: 100%; min-width: 0; height: 36px; padding: 0 10px; }
+ .controls input[type=search] {
+ width: 100%;
+ min-width: 0;
+ height: 36px;
+ padding: 0 10px;
+ font-size: 16px;
+ }
.filters {
grid-column: 1 / -1;
display: flex;
@@ -1025,7 +1043,7 @@ const renderExportScript = (name: string): string => `
const source = conversations.length > 1 && activeConversation === 'all'
? '' + esc(message.exportConversationName || '聊天') + ''
: ''
- const locateAction = activeKind === 'all'
+ const locateAction = activeKind === 'all' && !query.value.trim()
? ''
: '