Skip to content
Snippets Groups Projects
Verified Commit c088e0d5 authored by Dominic Meiser's avatar Dominic Meiser
Browse files

wrap long template/imageselect with scroll

parent eed17041
No related branches found
No related tags found
1 merge request!8Scrolling
Checking pipeline status
......@@ -269,11 +269,6 @@ main {
place-self: center;
}
img {
width: 10rem;
background-color: #fff;
}
.option-border {
border: @option_border solid var(--fg-dark);
border-radius: 3 * @option_border;
......@@ -329,6 +324,34 @@ main {
}
}
.templateselect {
overflow: scroll;
// a row is roughly 15rem
max-height: 40rem;
}
.imageselect {
overflow: scroll;
// a row is roughly 10rem
max-height: 25rem;
}
.icon-container {
width: 10rem;
height: 10rem;
display: flex;
align-items: center;
justify-content: center;
img {
background-color: #fff;
max-width: 100%;
max-height: 100%;
}
}
.flash {
border: 1px solid transparent;
border-radius: 4px;
......
......@@ -57,7 +57,7 @@
checked
{%- endif -%}
/>
<label for="img:{{ img }}" class="option-border">
<label for="img:{{ img }}" class="option-border icon-container">
<img src="{{ url_for('instance.static', filename='img/'+img) }}" title="{{ img }}" />
</label>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment