Skip to content

Commit c2b7c1e

Browse files
committed
fix: don't allow max-width bigger, than container size for image preview
https://web.tracklify.com/project/2b7ZVgE5/AdminForth/1381/6LEetP2t/mobile-view
1 parent 8676455 commit c2b7c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom/preview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const maxWidth = computed(() => {
127127
? (props.meta.maxShowWidth || props.meta.maxWidth)
128128
: (props.meta.maxListWidth || props.meta.maxWidth);
129129
130-
return width ? { maxWidth: width } : {};
130+
return width ? { maxWidth: `min(100%, ${width})` } : {};
131131
});
132132
133133
const minWidth = computed(() => {

0 commit comments

Comments
 (0)