fix: minor ui & audio/video changes

This commit is contained in:
Maya 2025-07-29 12:31:47 +03:00
parent 8d1d9647f0
commit b3778d3b83
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,7 @@
extension?: string; extension?: string;
prefix?: string; prefix?: string;
type?: string; type?: string;
min?: number;
}; };
let { let {
@ -17,12 +18,14 @@
extension, extension,
prefix, prefix,
type = "text", type = "text",
min = 0,
}: Props = $props(); }: Props = $props();
</script> </script>
<div class="relative flex w-full {className}"> <div class="relative flex w-full {className}">
<input <input
{type} {type}
{min}
bind:value bind:value
{placeholder} {placeholder}
{disabled} {disabled}
@ -32,14 +35,14 @@
/> />
{#if prefix} {#if prefix}
<div class="absolute left-0 top-0 bottom-0 flex items-center px-2"> <div class="absolute left-0 top-0 bottom-0 flex items-center px-2">
<span class="text-sm text-gray-400 px-2 py-1 rounded" <span class="text-sm text-gray-400 px-2 py-1 rounded">{prefix}</span
>{prefix}</span
> >
</div> </div>
{/if} {/if}
{#if extension} {#if extension}
<div class="absolute right-0 top-0 bottom-0 flex items-center px-4"> <div class="absolute right-0 top-0 bottom-0 flex items-center px-4">
<span class="text-sm bg-button text-black dynadark:text-white px-2 py-1 rounded" <span
class="text-sm bg-button text-black dynadark:text-white px-2 py-1 rounded"
>{extension}</span >{extension}</span
> >
</div> </div>

View File

@ -203,7 +203,7 @@ export class FFmpegConverter extends Converter {
"-f", "-f",
"lavfi", "lavfi",
"-i", "-i",
"color=c=black:s=640x480:rate=1", "color=c=black:s=512x512:rate=1",
"-i", "-i",
"input", "input",
"-shortest", "-shortest",