fix(tts): clean sentence highlight, drop box-shadow square on line wraps
Use a background highlight with box-decoration-break: clone so a wrapped sentence highlights smoothly instead of rendering a pale square box.
This commit is contained in:
parent
4b0a443928
commit
b5958382df
1 changed files with 6 additions and 5 deletions
|
|
@ -1382,12 +1382,13 @@ a:hover {
|
|||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Per-sentence glow while TTS reads a message aloud */
|
||||
/* Per-sentence highlight while TTS reads a message aloud */
|
||||
.tts-sentence {
|
||||
border-radius: 3px;
|
||||
transition: background-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
|
||||
border-radius: 2px;
|
||||
transition: background-color 0.12s ease;
|
||||
}
|
||||
.tts-sentence.tts-reading {
|
||||
background: rgba(255, 214, 92, 0.30);
|
||||
box-shadow: 0 0 10px 2px rgba(255, 200, 70, 0.55);
|
||||
background: rgba(255, 209, 64, 0.45);
|
||||
-webkit-box-decoration-break: clone;
|
||||
box-decoration-break: clone;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue