mirror of https://gitlab.com/bashrc2/epicyon
Image object fit
parent
7dcc589864
commit
4c481b5dfc
|
@ -68,6 +68,11 @@ a:link {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fill {object-fit: fill;}
|
||||||
|
.contain {object-fit: contain;}
|
||||||
|
.cover {object-fit: cover;}
|
||||||
|
.scale-down {object-fit: scale-down;}
|
||||||
|
|
||||||
.cwText {
|
.cwText {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2347,7 +2347,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
if boxName=='tlmedia':
|
if boxName=='tlmedia':
|
||||||
galleryStr+='<div class="gallery">\n'
|
galleryStr+='<div class="gallery">\n'
|
||||||
galleryStr+=' <a href="'+attach['url']+'">\n'
|
galleryStr+=' <a href="'+attach['url']+'">\n'
|
||||||
galleryStr+=' <img loading="lazy" src="'+attach['url']+'" alt="" title="" width="600" height="400">\n'
|
galleryStr+=' <img loading="lazy" class="contain" src="'+attach['url']+'" alt="" title="" width="600" height="400">\n'
|
||||||
galleryStr+=' </a>\n'
|
galleryStr+=' </a>\n'
|
||||||
if postJsonObject['object'].get('url'):
|
if postJsonObject['object'].get('url'):
|
||||||
imagePostUrl=postJsonObject['object']['url']
|
imagePostUrl=postJsonObject['object']['url']
|
||||||
|
|
Loading…
Reference in New Issue