mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
fix(global_menu): dev menu wrongly positioned on horizontal layout
This commit is contained in:
@@ -104,10 +104,12 @@ function BrowserOnlyOptions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function DevelopmentOptions() {
|
function DevelopmentOptions() {
|
||||||
|
const [ layoutOrientation ] = useTriliumOption("layoutOrientation");
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<FormDropdownDivider />
|
<FormDropdownDivider />
|
||||||
<FormListItem disabled>Development Options</FormListItem>
|
<FormListItem disabled>Development Options</FormListItem>
|
||||||
<FormDropdownSubmenu icon="bx bx-test-tube" title="Experimental features">
|
<FormDropdownSubmenu icon="bx bx-test-tube" title="Experimental features" dropStart={layoutOrientation === "horizontal"}>
|
||||||
{experimentalFeatures.map((feature) => (
|
{experimentalFeatures.map((feature) => (
|
||||||
<ExperimentalFeatureToggle key={feature.id} experimentalFeature={feature as ExperimentalFeature} />
|
<ExperimentalFeatureToggle key={feature.id} experimentalFeature={feature as ExperimentalFeature} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user