mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
make a preference for image sizes in posts, fix #119
This commit is contained in:
@@ -24,6 +24,19 @@ html
|
||||
p subreddit:
|
||||
a(href="/r/" + subreddit + "")
|
||||
p /r/#{subreddit}
|
||||
if user_preferences.post_media_max_height
|
||||
if(post_media_max_heights.hasOwnProperty(user_preferences.post_media_max_height))
|
||||
style.
|
||||
#post .image img, #post .video video {
|
||||
max-height: #{post_media_max_heights[user_preferences.post_media_max_height]}px;
|
||||
max-width: 100%;
|
||||
}
|
||||
else if(!isNaN(user_preferences.post_media_max_height))
|
||||
style.
|
||||
#post .image img, #post .video video {
|
||||
max-height: #{user_preferences.post_media_max_height}px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.info
|
||||
.score
|
||||
div.arrow
|
||||
|
||||
Reference in New Issue
Block a user