mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	electron app: display the smooth scrolling setting only on the Electron app
This commit is contained in:
		| @@ -250,7 +250,6 @@ function Performance() { | ||||
|     const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled"); | ||||
|     const [ shadowsEnabled, setShadowsEnabled ] = useTriliumOptionBool("shadowsEnabled"); | ||||
|     const [ backdropEffectsEnabled, setBackdropEffectsEnabled ] = useTriliumOptionBool("backdropEffectsEnabled"); | ||||
|     const [ smoothScrollEnabled, setSmoothScrollEnabled ] = useTriliumOptionBool("smoothScrollEnabled"); | ||||
|  | ||||
|     return <OptionsSection title={t("ui-performance.title")}> | ||||
|         <FormCheckbox | ||||
| @@ -268,13 +267,19 @@ function Performance() { | ||||
|             currentValue={backdropEffectsEnabled} onChange={setBackdropEffectsEnabled} | ||||
|         /> | ||||
|  | ||||
|         <FormCheckbox | ||||
|             label={`${t("ui-performance.enable-smooth-scroll")} ${t("ui-performance.app-restart-required")}`} | ||||
|             currentValue={smoothScrollEnabled} onChange={setSmoothScrollEnabled} | ||||
|         /> | ||||
|         {isElectron() && <SmoothScrollEnabledOption />} | ||||
|  | ||||
|     </OptionsSection> | ||||
| } | ||||
|  | ||||
| function SmoothScrollEnabledOption() { | ||||
|     const [ smoothScrollEnabled, setSmoothScrollEnabled ] = useTriliumOptionBool("smoothScrollEnabled"); | ||||
|  | ||||
|     return <FormCheckbox | ||||
|         label={`${t("ui-performance.enable-smooth-scroll")} ${t("ui-performance.app-restart-required")}`} | ||||
|         currentValue={smoothScrollEnabled} onChange={setSmoothScrollEnabled} | ||||
|     /> | ||||
| } | ||||
|  | ||||
| function MaxContentWidth() { | ||||
|     const [ maxContentWidth, setMaxContentWidth ] = useTriliumOption("maxContentWidth"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user