mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
fix: invalid display of opacity value
This commit is contained in:
@ -21,7 +21,7 @@ export const DrawView = ({ currentTool, setTool, settings, setSettings, colors,
|
||||
<Sheet className='draw-sheet draw-sheet--color-picker' backdrop swipeToClose onSheetClosed={() => f7.sheet.open('.draw-sheet--settings')}>
|
||||
<div className='draw-sheet-label'><span>{_t.textCustomColor}</span></div>
|
||||
<WheelColorPicker
|
||||
initialColor={settings.color}
|
||||
initialColor={settings[currentTool].color}
|
||||
onSelectColor={(color) => {
|
||||
f7.sheet.close('.draw-sheet--color-picker')
|
||||
addCustomColor(color)
|
||||
@ -60,14 +60,14 @@ export const DrawView = ({ currentTool, setTool, settings, setSettings, colors,
|
||||
onRangeChange={(value) => setSettings({ lineSize: value })}
|
||||
/>
|
||||
{/*) : (*/}
|
||||
{/* <input className='line-size-range--ios' type='range' min={0.5} max={10} step={0.5} value={settings.lineSize} onChange={(e) => setSettings({ lineSize: parseInt(e.target.value) })} />*/}
|
||||
{/* <input className='line-size-range--ios' type='range' min={0.5} max={10} step={0.5} value={settings[currentTool].lineSize} onChange={(e) => setSettings({ lineSize: parseInt(e.target.value) })} />*/}
|
||||
{/* )}*/}
|
||||
</div>
|
||||
<div className='draw-sheet-label'><span>{_t.textOpacity}</span></div>
|
||||
<div className='draw-sheet-item'>
|
||||
<input style={{ '--color': settings[currentTool].color }}
|
||||
className={Device.android ? 'opacity-range-input--android' : 'opacity-range-input--ios'} type='range' min={0} max={100} step={1}
|
||||
value={settings.opacity}
|
||||
value={settings[currentTool].opacity}
|
||||
onChange={(e) => setSettings({ opacity: parseInt(e.target.value) })}/>
|
||||
</div>
|
||||
</Sheet>
|
||||
|
||||
Reference in New Issue
Block a user