src/pyams_file/skin/templates/picture.pt
changeset 218 458cf3d033aa
parent 204 53322ba0ec77
child 219 1c07e0c889ba
--- a/src/pyams_file/skin/templates/picture.pt	Tue Jan 12 13:35:20 2021 +0100
+++ b/src/pyams_file/skin/templates/picture.pt	Tue May 04 12:38:32 2021 +0200
@@ -46,7 +46,7 @@
 			srcset="/--static--/myams/img/dot.png" />
 	<tal:if condition="def_width">
 		<!-- fallback image -->
-		<img style="width: 100%;" class="${css_class}"
+		<img style="width: ${img_width};" class="${css_class}"
 			 tal:define="width str(round(1200 / 12 * def_width));
 						 thumb thumbnails.get_thumbnail(def_thumb + ':w' + width);
 						 timestamp tales:timestamp(thumb);"