fix: prevent image overflow in plugin description
Tutor Deck images were overflowing.
This commit is contained in:
parent
46f7d7af30
commit
d0c788a66b
@ -0,0 +1 @@
|
||||
- [Bugfix] Prevent images in plugin description from overflowing. (by @mlabeeb03)
|
||||
@ -1,6 +1,7 @@
|
||||
import asyncio
|
||||
import json
|
||||
import logging
|
||||
import re
|
||||
import sys
|
||||
import typing as t
|
||||
|
||||
@ -81,7 +82,7 @@ async def plugin_store_list() -> str:
|
||||
"url": p.url,
|
||||
"index": p.index,
|
||||
"author": p.author.split("<")[0].strip(),
|
||||
"description": markdown(p.description.replace("\n", " ")),
|
||||
"description": p.short_description,
|
||||
"is_installed": p.name in g.installed_plugins,
|
||||
"is_enabled": p.name in g.enabled_plugins,
|
||||
}
|
||||
@ -109,7 +110,7 @@ async def plugin_installed_list() -> str:
|
||||
"url": p.url,
|
||||
"index": p.index,
|
||||
"author": p.author.split("<")[0].strip(),
|
||||
"description": markdown(p.description.replace("\n", " ")),
|
||||
"description": p.short_description,
|
||||
"is_enabled": p.name in g.enabled_plugins,
|
||||
}
|
||||
for p in tutorclient.Client.plugins_in_store()
|
||||
|
||||
@ -290,6 +290,12 @@ main {
|
||||
#plugin-full-description {
|
||||
border-top: 1px solid $gray-1;
|
||||
padding: 1em 0em;
|
||||
|
||||
p {
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.search-and-button {
|
||||
display: flex;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user