Fix a bunch of padding issues

This commit is contained in:
2023-01-17 22:53:41 +01:00
parent ad026481a2
commit aec9371f4d
11 changed files with 42 additions and 22 deletions

View File

@@ -12,15 +12,22 @@ export let width = "750px"
<style>
.block {
display: inline-flex;
display: flex;
flex-direction: row;
margin: 8px auto;
}
@media(max-width: 500px) {
.block {
flex-direction: column;
}
}
.icon {
flex: 0 0 auto;
margin-right: 8px;
border-radius: 8px;
/* Prevent icon from being stretched if text content is too large */
object-fit: contain;
align-self: center;
}
.description {
flex: 1 1 auto;
@@ -28,7 +35,7 @@ export let width = "750px"
text-align: initial;
padding-left: 8px;
vertical-align: middle;
overflow-wrap: anywhere;
background-color: var(--shaded_background);
border-radius: 8px;
padding: 8px;