more styling posts

too lazy to made up commit message atp
This commit is contained in:
Václav Šmejkal 2024-05-24 22:07:19 +02:00
parent ab7172dbe0
commit b114795f4f
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 29 additions and 6 deletions

View File

@ -27,8 +27,8 @@
"<div class=\"post_info\">" + "<div class=\"post_info\">" +
"<div>Název: " + result[i].title + "</div>" + "<div>Název: " + result[i].title + "</div>" +
((result[i].description != null) ? "<div>Popis: " + result[i].description + "</div>" : "") +
"<div>Autor: " + result[i].username + "</div>" + "<div>Autor: " + result[i].username + "</div>" +
((result[i].description != null) ? "<div class=\"post_desc\">Popis: <div class=\"post_desc_text\">" + result[i].description + "</div></div>" : "") +
"</div>" + "</div>" +
"</div>" "</div>"
); );

View File

@ -142,16 +142,23 @@ body
#info_pane #info_pane
{ {
position: relative; position: absolute;
width: fit-content; width: fit-content;
height: auto; height: fit-content;
margin: 0 auto; margin: 0 auto;
padding: 5vh; padding: 5vh;
border: solid 1px #3E392F; left: 0;
border-radius: 0.5vh 0.5vh; right: 0;
background: #6F7270; top: 0;
bottom: 0;
margin: auto;
}
#info_pane *
{
padding: 0.5vh;
} }
#save_btn #save_btn
@ -269,3 +276,19 @@ body
{ {
filter: invert(10%); filter: invert(10%);
} }
.post_desc
{
display: flex;
flex-direction: column;
padding-top: 1vh;
width: 25vw;
}
.post_desc_text
{
height: fit-content;
max-height: 15vh;
overflow-y: auto;
padding-left: 1vw;
}