mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
add a very small image size for catalog
This commit is contained in:
parent
56e55d157a
commit
ac888a769d
@ -7,12 +7,9 @@ if (active_page == 'catalog') $(function(){
|
|||||||
|
|
||||||
$("#image_size").change(function(){
|
$("#image_size").change(function(){
|
||||||
var value = this.value, old;
|
var value = this.value, old;
|
||||||
if (value == "small") {
|
$(".grid-li").removeClass("grid-size-vsmall");
|
||||||
old = "large";
|
$(".grid-li").removeClass("grid-size-small");
|
||||||
} else {
|
$(".grid-li").removeClass("grid-size-large");
|
||||||
old = "small";
|
|
||||||
}
|
|
||||||
$(".grid-li").removeClass("grid-size-"+old);
|
|
||||||
$(".grid-li").addClass("grid-size-"+value);
|
$(".grid-li").addClass("grid-size-"+value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -533,6 +533,16 @@ form.ban-appeal textarea {
|
|||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-catalog div.grid-size-vsmall img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-catalog div.grid-size-vsmall {
|
||||||
|
width: 100px;
|
||||||
|
max-width: 100px;
|
||||||
|
max-height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-catalog div.grid-size-small {
|
.theme-catalog div.grid-size-small {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
<span>{% trans 'Image size' %}: </span>
|
<span>{% trans 'Image size' %}: </span>
|
||||||
<select id="image_size" style="display: inline-block">
|
<select id="image_size" style="display: inline-block">
|
||||||
|
<option value="vsmall">{% trans 'Very small' %}</option>
|
||||||
<option selected value="small">{% trans 'Small' %}</option>
|
<option selected value="small">{% trans 'Small' %}</option>
|
||||||
<option value="large">{% trans 'Large' %}</option>
|
<option value="large">{% trans 'Large' %}</option>
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user