Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
icheered committed Oct 20, 2022
1 parent 17afc20 commit 2cba6ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
22 changes: 10 additions & 12 deletions frontend/src/lib/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<input class="textfield" type="text" bind:value={watermarkOpacity} on:change={valuechanged} min="0" max="100" />
</div>
<div>
<input class="slider" type="range" bind:value={watermarkOpacity} min="0" max="100" />
<input class="slider" type="range" bind:value={watermarkOpacity} on:change={valuechanged} min="0" max="100" />
</div>

<div class="row">
<div class="text">Scale</div>
<input class="textfield" type="text" bind:value={watermarkScale} on:change={valuechanged} min="0" max="100" />
</div>
<div>
<input class="slider" type="range" bind:value={watermarkScale} min="0" max="100" />
<div>
<input class="slider" type="range" bind:value={watermarkScale} on:change={valuechanged} min="0" max="100" />
</div>
<div>Watermark location</div>
<select bind:value={watermarkPosition} on:change={valuechanged}>
Expand All @@ -46,30 +46,28 @@
padding-top: 3px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type='range'] {
@media screen and (-webkit-min-device-pixel-ratio: 0) {
input[type="range"] {
overflow: hidden;
-webkit-appearance: none;
background-color: white;
border-radius: 5px;
}
input[type='range']::-webkit-slider-runnable-track {
input[type="range"]::-webkit-slider-runnable-track {
height: 10px;
-webkit-appearance: none;
color: #13bba4;
margin-top: -1px;
}
input[type='range']::-webkit-slider-thumb {
input[type="range"]::-webkit-slider-thumb {
width: 6px;
-webkit-appearance: none;
height: 10px;
cursor: ew-resize;
background: black;
box-shadow: -80px 0 0 80px #1caeee;
}
}
}
</style>
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/wailsapp/wails/v2 v2.1.0
github.com/wailsapp/wails/v2 v2.0.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
github.com/wailsapp/wails/v2 v2.1.0 h1:OJxPu/4vQxSwAjVVpSNiMVGyYyInpm0UtlDUgVxpaSo=
github.com/wailsapp/wails/v2 v2.1.0/go.mod h1:zdc9YVrIijjuNNkLOO3UpTU6M12TJe6TlriL+3ttlMM=
github.com/wailsapp/wails/v2 v2.0.0 h1:EsiIMQYi3XeAJvvJNYTWVSyaEYwuBsSFU9ACSq7Ly4s=
github.com/wailsapp/wails/v2 v2.0.0/go.mod h1:z3os4dBFCOmPhFHjjEKY4KygTVFKAGECkS9/mKm1wEU=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
Expand Down

0 comments on commit 2cba6ae

Please sign in to comment.