fixed some params and ui

This commit is contained in:
Jelaletdin12
2026-08-25 22:58:08 +05:00
parent f00d2abcac
commit f293806d96
25 changed files with 547 additions and 87 deletions

View File

@@ -175,11 +175,10 @@ export function PassportImage({ label, src, url }: PassportImageProps) {
const imageSrc = src ?? url ?? null;
return (
<div className="flex flex-col sm:grid sm:grid-cols-[minmax(0,42%)_minmax(0,58%)] items-start py-3 px-4 border-b border-border last:border-0 gap-1 sm:gap-0">
<span className="text-xs sm:text-sm text-muted-foreground">{label}</span>
<div className="flex flex-col items-start py-3 px-4 border-b border-border last:border-0 gap-1 sm:gap-0">
<div className="flex flex-col gap-2">
{imageSrc ? (
<img src={imageSrc} alt={label} className="w-28 h-20 object-cover rounded-md border border-border" />
<img src={imageSrc} alt={label} className="w-full h-46 object-contain rounded-md border border-border" />
) : (
<div className="w-28 h-20 bg-muted rounded-md border border-border flex items-center justify-center">
<span className="text-xs text-muted-foreground">—</span>