Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Minor tweaks
Dieser Commit ist enthalten in:
Ursprung
6aedcd33da
Commit
7f15e2a657
3 geänderte Dateien mit 13 neuen und 2 gelöschten Zeilen
|
@ -42,7 +42,7 @@ export default {
|
|||
const src = this.get('step.banner');
|
||||
if (!src) return;
|
||||
|
||||
if (src.indexOf('/uploads/') > -1 || src.indexOf('/images/') > -1) {
|
||||
if (src.indexOf('/uploads/') > -1 || src.indexOf('/plugins/') > -1) {
|
||||
return getUrl(src);
|
||||
} else {
|
||||
return getUrl(`/images/wizard/${src}`);
|
||||
|
|
|
@ -13,11 +13,22 @@
|
|||
i {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
img.large {
|
||||
width: 250;
|
||||
padding: 25px;;
|
||||
}
|
||||
|
||||
img.small {
|
||||
width: 120;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.wizard-column .wizard-step-banner {
|
||||
width: initial;
|
||||
max-width: 660px;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
|
|
|
@ -97,7 +97,7 @@ end
|
|||
|
||||
def description
|
||||
return object.description if object.description
|
||||
I18n.t("#{object.key || i18n_key}.description", default: '')
|
||||
I18n.t("#{object.key || i18n_key}.description", default: '', base_url: Discourse.base_url)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren