feat: shorter video text, tooltip fix

This commit is contained in:
Maya 2025-07-27 17:25:00 +03:00
parent 98e91337db
commit 136a781f76
No known key found for this signature in database
3 changed files with 30 additions and 11 deletions

View File

@ -26,7 +26,7 @@
"audio": "Audio",
"documents": "Documents",
"video": "Video",
"video_server_processing": "Video uploads to a server for processing by default, learn how to set it up locally [wiki_link]here[/wiki_link].",
"video_server_processing": "Server supported",
"local_supported": "Local fully supported",
"status": {
"text": "<b>Status:</b> {status}",
@ -38,7 +38,8 @@
"tooltip": {
"partial_support": "This format can only be converted as {direction}.",
"direction_input": "input (from)",
"direction_output": "output (to)"
"direction_output": "output (to)",
"video_server_processing": "Video uploads to a server for processing by default, learn how to set it up locally here."
}
},
"convert": {

View File

@ -84,7 +84,8 @@
<style>
.tooltip {
--border-size: 1px;
@apply fixed bg-panel-alt text-foreground border border-stone-400 dynadark:border-white drop-shadow-lg text-xs px-4 py-2 rounded-full whitespace-nowrap pointer-events-none z-[999];
@apply fixed bg-panel-alt text-foreground border border-stone-400 dynadark:border-white drop-shadow-lg text-xs rounded-full pointer-events-none z-[999] max-w-xs break-words whitespace-normal;
@apply px-5 py-2.5;
}
.tooltip-top {

View File

@ -171,14 +171,31 @@
>
<div class="flex flex-col gap-4">
{#if key === "Video"}
<p>
{@html link(
"wiki_link",
m[
<p
class="flex tems-center justify-center gap-2"
>
<Check size="20" />
<Tooltip
text={m[
"upload.tooltip.video_server_processing"
]()}
>
<span>
<a
href="https://github.com/VERT-sh/VERT/blob/main/docs/VIDEO_CONVERSION.md"
target="_blank"
rel="noopener noreferrer"
>
{m[
"upload.cards.video_server_processing"
](),
"https://github.com/VERT-sh/VERT/wiki/How-to-convert-video-with-VERT",
)}
]()}
</a>
<span
class="text-red-500 -ml-0.5"
>*</span
>
</span>
</Tooltip>
</p>
{:else}
<p