Center title in product picture dialog

This commit is contained in:
Bernd Bestel 2018-10-02 18:00:52 +02:00
parent bb9caf9cc9
commit ae58606d04
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 9 additions and 1 deletions

View File

@ -81,6 +81,12 @@ input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
.centered-dialog .modal-title,
.centered-dialog .modal-body {
margin-left: auto;
margin-right: auto;
}
/* Navigation style customizations */
#mainNav {
background-color: #e5e5e5 !important;

View File

@ -153,9 +153,11 @@ $(document).on("click", ".product-name-cell", function(e)
bootbox.dialog({
title: L("Image of product #1", productName),
message: "<img src='" + pictureUrl + "' class='img-fluid img-thumbnail d-flex mx-auto'>",
message: "<img src='" + pictureUrl + "' class='img-fluid img-thumbnail'>",
backdrop: false,
onEscape: true,
closeButton: false,
className: 'centered-dialog',
buttons: {
editproduct: {
label: '<i class="fas fa-edit"></i> ' + L('Edit product'),