mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 10:01:59 +00:00
fix: scroll to bottom in w2g, app chat
fix: auto-contrast text in search modal fix: new lines on bad subs
This commit is contained in:
parent
e76e01df46
commit
ec26b46f76
5 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui",
|
"name": "ui",
|
||||||
"version": "6.4.96",
|
"version": "6.4.97",
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.15.5",
|
"packageManager": "pnpm@9.15.5",
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#each sanitiseTerms(result.parseObject) as { text, color }, i (i)}
|
{#each sanitiseTerms(result.parseObject) as { text, color }, i (i)}
|
||||||
<div class='rounded px-3 py-1 ml-2 text-nowrap font-bold flex items-center' style:background={color}>
|
<div class='rounded px-3 py-1 ml-2 text-nowrap font-bold flex items-center' style:background={color}>
|
||||||
<div class='text-contrast'>
|
<div class='text-contrast-filter'>
|
||||||
{text}
|
{text}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='flex md:flex-row flex-col-reverse w-full h-full min-h-0'>
|
<div class='flex md:flex-row flex-col-reverse w-full h-full min-h-0'>
|
||||||
<div class='flex flex-col justify-end overflow-clip flex-grow px-4 pb-4 h-full min-h-0'>
|
<div class='flex flex-col justify-end overflow-clip flex-grow px-4 pb-4 h-full min-h-0'>
|
||||||
<div class='h-full overflow-y-scroll min-h-0 w-full'>
|
<div class='h-full overflow-y-scroll min-h-0 w-full [overflow-anchor:auto] content-end'>
|
||||||
<Messages messages={client.messages} />
|
<Messages messages={client.messages} />
|
||||||
</div>
|
</div>
|
||||||
<div class='flex mt-4 gap-2'>
|
<div class='flex mt-4 gap-2'>
|
||||||
|
|
|
||||||
|
|
@ -349,6 +349,8 @@ export default class Subtitles {
|
||||||
}
|
}
|
||||||
// replace all html special tags with normal ones
|
// replace all html special tags with normal ones
|
||||||
Text = Text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/ /g, '\\h').replace(/1?\n/g, '\\N')
|
Text = Text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/ /g, '\\h').replace(/1?\n/g, '\\N')
|
||||||
|
} else {
|
||||||
|
Text = Text.replace('\n', '') // some bad subbers put \n in the text, which breaks the rendering
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
Start: subtitle.time,
|
Start: subtitle.time,
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='flex md:flex-row flex-col-reverse w-full h-full min-h-0'>
|
<div class='flex md:flex-row flex-col-reverse w-full h-full min-h-0'>
|
||||||
<div class='flex flex-col justify-end overflow-clip flex-grow px-4 pb-4 h-full min-h-0'>
|
<div class='flex flex-col justify-end overflow-clip flex-grow px-4 pb-4 h-full min-h-0'>
|
||||||
<div class='h-full overflow-y-scroll min-h-0 w-full'>
|
<div class='h-full overflow-y-scroll min-h-0 w-full [overflow-anchor:auto] content-end'>
|
||||||
<Messages {messages} />
|
<Messages {messages} />
|
||||||
</div>
|
</div>
|
||||||
<div class='flex mt-4 gap-2'>
|
<div class='flex mt-4 gap-2'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue