0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 15:21:11 +02:00

Lightbox doesn't work in custom wizard

Dieser Commit ist enthalten in:
Angus McLeod 2020-05-04 18:09:18 +10:00
Ursprung d3eaceefe1
Commit dd3875840b
2 geänderte Dateien mit 13 neuen und 11 gelöschten Zeilen

Datei anzeigen

@ -10,11 +10,9 @@
</label>
{{#if field.value}}
<a href="{{field.value.url}}" class="filename">
{{#unless isImage}}
{{field.value.original_filename}}
{{else}}
<img src={{field.value.url}} class="wizard-image-preview">
{{/unless}}
</a>
{{#unless isImage}}
{{field.value.original_filename}}
{{else}}
<img src={{field.value.url}} class="wizard-image-preview">
{{/unless}}
{{/if}}

Datei anzeigen

@ -233,13 +233,17 @@
}
.wizard-image-preview {
max-width: 200px;
max-height: 200px;
margin-top: 10px;
max-width: 500px;
max-height: 500px;
overflow: hidden;
display: block;
border: none;
padding: 0;
img {
max-width:100%;
max-height:100%;
max-width: 100%;
max-height: 100%;
}
}