File tree Expand file tree Collapse file tree
form/components/fields/upload Expand file tree Collapse file tree Original file line number Diff line number Diff line change 393393 <div :class =" { 'bg-background border rounded-md p-4': !asEditorEmbed }" >
394394 <div class =" flex gap-4" >
395395 <template v-if =" transformedImg ?? value ?.thumbnail ?? uppyFile ?.preview " >
396- <div class =" self-center group/img relative flex flex-col justify-center rounded-md overflow-hidden" >
397- <img class =" rounded-md max-h-[150px] max-w-[150px]"
396+ <div class =" self-center group/img relative rounded-md overflow-hidden" >
397+ <img class =" rounded-md min-w-[50px] max-h-[150px] max-w-[150px] object-contain "
398398 :class =" uppyFile && !transformedImg && field.imageCropRatio ? 'object-cover aspect-(--ratio)' : ''"
399399 :style =" {
400400 '--ratio': field.imageCropRatio ? `${field.imageCropRatio[0]} / ${field.imageCropRatio[1]}` : null
Original file line number Diff line number Diff line change 2323
2424<template >
2525 <ShowFieldLayout v-bind =" props" >
26- <div class =" flex gap-4 p-4 border rounded-md max-w-[500px ]" >
26+ <div class =" flex gap-4 p-4 border rounded-md max-w-[600px ]" >
2727 <template v-if =" value " >
2828 <template v-if =" value .thumbnail " >
29- <img class =" self-center rounded-sm max-w-[100px] max-h-[100px]"
30- :src =" value.thumbnail"
31- :alt =" field.label"
32- >
29+ <div class =" self-center" >
30+ <img class =" rounded-sm min-w-[40px] max-w-[100px] max-h-[100px] object-contain"
31+ :src =" value.thumbnail"
32+ :alt =" field.label"
33+ >
34+ </div >
3335 </template >
3436 <template v-else >
3537 <FileIcon class =" self-center size-4" :mime-type =" value.mime_type" />
Original file line number Diff line number Diff line change 1313 </script >
1414
1515<template >
16- <component :is =" embed.tag" class =" block my-4 first:mt-0 last:mb-0 bg-background border rounded-md p-4" >
16+ <component :is =" embed.tag" class =" block my-4 first:mt-0 last:mb-0 bg-background border rounded-md p-4 max-w-[600px] " >
1717 <template v-if =" embed .displayEmbedHeader " >
1818 <EmbedHeader :embed =" embed" />
1919 </template >
You can’t perform that action at this time.
0 commit comments