fixed some params and ui
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user