Update texture map preview to object-contain to prevent cropping
This commit is contained in:
@@ -4277,9 +4277,9 @@ export default function Editor() {
|
||||
<div
|
||||
onClick={() => textureInputRef.current?.click()}
|
||||
className={cn(
|
||||
"w-full h-24 rounded border-2 border-dashed flex flex-col items-center justify-center gap-2 cursor-pointer transition-all",
|
||||
"w-full h-32 rounded border-2 border-dashed flex flex-col items-center justify-center gap-2 cursor-pointer transition-all",
|
||||
selectedObject.materialProps?.map
|
||||
? "border-blue-500/50 bg-blue-500/5 overflow-hidden"
|
||||
? "border-blue-500/50 bg-blue-500/5 overflow-hidden p-1"
|
||||
: "border-zinc-800 hover:border-zinc-700 bg-zinc-800/30"
|
||||
)}
|
||||
>
|
||||
@@ -4287,7 +4287,7 @@ export default function Editor() {
|
||||
<img
|
||||
src={selectedObject.materialProps.map}
|
||||
alt="Texture Preview"
|
||||
className="w-full h-full object-cover"
|
||||
className="w-full h-full object-contain rounded-sm"
|
||||
referrerPolicy="no-referrer"
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user