Describe the bug
When signing for an asset, the signature window cant be used full size and the signature (or the pen i write with) is offset, ca. 1cm to the right.
It happens on all devices in all browsers.
Expected behavior
Use the full signature window
Screenshots

Server (please complete the following information):
Desktop (please complete the following information):
So this is fun...

(See #8656)
It's too big and too small. Schr枚dinger signature box :D
We're looking into this.
Can anyone tell me if this happens only on mobile v desktop?
The signature-pad.min.css is missing.
It looks like webpack.mix.js tries to minify signature-pad.css, but it's just not there.
.copy('./resources/assets/css/signature-pad.css', './public/css/dist')
.minify('./public/css/build/signature-pad.css');
Here is my attempt to fix it (b031593) by correct copy target path and commit minified css file.
.copy('./resources/assets/css/signature-pad.css', './public/css/signature-pad.css')
.minify('./public/css/signature-pad.css');
Download the minified css file (b031593) and signature pad size shall be correct.
$ curl https://raw.githubusercontent.com/tarlety/snipe-it/b0315930659ded6fe1583cca21eafb2aafa744e3/public/css/build/signature-pad.min.css -o /var/www/html/public/css/signature-pad.min.css
We call it directly in the file.
https://github.com/snipe/snipe-it/blob/master/resources/views/account/accept-asset.blade.php#L14
GitHub
A free open source IT asset/license management system - snipe/snipe-it
If you copy signature-pad.css in public/css to public/css/signature-pad.min.css does that help?
(Should not need to re-run npm for assets)
If you copy
signature-pad.cssinpublic/csstopublic/css/signature-pad.min.cssdoes that help?
On my self-hosted instance, yes it does help.
I am using snipe-it 5.0.4.
Okay, that's on develop now, will be in the next release
The
signature-pad.min.cssis missing.It looks like
webpack.mix.jstries to minifysignature-pad.css, but it's just not there..copy('./resources/assets/css/signature-pad.css', './public/css/dist') .minify('./public/css/build/signature-pad.css');Here is my attempt to fix it (b031593) by correct copy target path and commit minified css file.
.copy('./resources/assets/css/signature-pad.css', './public/css/signature-pad.css') .minify('./public/css/signature-pad.css');Quick fix
Download the minified css file (b031593) and signature pad size shall be correct.
$ curl https://raw.githubusercontent.com/tarlety/snipe-it/b0315930659ded6fe1583cca21eafb2aafa744e3/public/css/build/signature-pad.min.css -o /var/www/html/public/css/signature-pad.min.css
thanks man! I really appreciate,
I tried the quick fix
and it's working
Firefox dekstop 82.0.2 (64-bit)

mobile version iphone x, portrait

mobile version iphone x , landscape

Awesome, thanks for the confirmation!
If you copy
signature-pad.cssinpublic/csstopublic/css/signature-pad.min.cssdoes that help?
confirmed!
I also tried this way
and it works too
cp resources/assets/css/signature-pad.css public/css/signature-pad.min.css

I think the issue was that the asset-acceptance.blade.php was looking in the wrong dir for the minified file.
<link rel="stylesheet" href="{{ mix('css/signature-pad.min.css') }}">
(not working)
vs
<link rel="stylesheet" href="{{ mix('css/build/signature-pad.min.css') }}">
(working)
signature-pad.min.css
maybe,
because previously I did not find the file
signature-pad.min.css in the public/css directory, but when that file is added, PHEW!!! , it seems like magic
It's the build part that was missing. Webpack minifies the source css from the resources/assets/css file, and puts it into the public/css/build directory, but our CSS link in that blade was omitting the build part of the path I think.
It's the
buildpart that was missing. Webpack minifies the source css from theresources/assets/cssfile, and puts it into thepublic/css/builddirectory, but our CSS link in that blade was omitting thebuildpart of the path I think.
absolutely right and i agree with that,
thank you so much @snipe and all team 馃檹馃徏
No problem - I'm glad we could get you sorted. :)
Thanks for the help! I will try it in the next days.
Most helpful comment
Okay, that's on develop now, will be in the next release