mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fix barcodescanner button css
This commit is contained in:
parent
e02779bed4
commit
25c16f4f28
|
|
@ -144,11 +144,11 @@ class barcodescanner
|
|||
{
|
||||
if ($(this).hasAttr("disabled"))
|
||||
{
|
||||
$(this).after('<a id="barcodescanner-start-button" class="btn btn-sm btn-primary text-white disabled" data-target="' + $(this).attr("data-target") + '"><i class="fas fa-camera"></i></a>');
|
||||
$(this).after('<a id="barcodescanner-start-button" class="btn btn-sm btn-primary text-white disabled barcodescanner-start-button" data-target="' + $(this).attr("data-target") + '"><i class="fas fa-camera"></i></a>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).after('<a id="barcodescanner-start-button" class="btn btn-sm btn-primary text-white" data-target="' + $(this).attr("data-target") + '"><i class="fas fa-camera"></i></a>');
|
||||
$(this).after('<a id="barcodescanner-start-button" class="btn btn-sm btn-primary text-white barcodescanner-start-button" data-target="' + $(this).attr("data-target") + '"><i class="fas fa-camera"></i></a>');
|
||||
}
|
||||
});
|
||||
}, 50);
|
||||
|
|
|
|||
|
|
@ -209,11 +209,12 @@ class GrocyFrontendHelpers
|
|||
|
||||
ShowGenericError(message, exception)
|
||||
{
|
||||
var self = this;
|
||||
toastr.error(this.Grocy.translate(message) + '<br><br>' + this.Grocy.translate('Click to show technical details'), '', {
|
||||
onclick: function()
|
||||
{
|
||||
bootbox.alert({
|
||||
title: this.Grocy.translate('Error details'),
|
||||
title: self.Grocy.translate('Error details'),
|
||||
message: '<pre class="my-0"><code>' + JSON.stringify(exception, null, 4) + '</code></pre>',
|
||||
closeButton: false
|
||||
});
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
#barcodescanner-start-button {
|
||||
.barcodescanner-start-button {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-top: 4px;
|
||||
|
|
@ -21,6 +21,6 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.combobox-container #barcodescanner-start-button {
|
||||
.combobox-container .barcodescanner-start-button {
|
||||
margin-right: 36px !important;
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// main grocy-style
|
||||
@import "main";
|
||||
@import "barcodes";
|
||||
|
||||
// third-party components
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user