aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-02 08:32:34 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-02 08:32:34 +0800
commite44eb8a58fe48e653af473fc6078c14cda2d7955 (patch)
treecc9b9cd5e89653f42496206aa82f2930254dc72b /src
parente71d29c4c6ea7bfac3db2fc8ccf2c70bf71d9a1f (diff)
feat: add 'More' menu item for layouts
Diffstat (limited to 'src')
-rw-r--r--src/MenuItem.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs
index 4d321ae..aabafb2 100644
--- a/src/MenuItem.mjs
+++ b/src/MenuItem.mjs
@@ -90,6 +90,10 @@ export const pickLayoutItem = ({ container, layouts }) =>
90 onclick: () => container.setAttribute('data-layout', layout.name), 90 onclick: () => container.setAttribute('data-layout', layout.name),
91 }), 91 }),
92 ), 92 ),
93 new Item({
94 innerHTML: '<a href="https://github.com/outdoorsafetylab/dumbymap#layouts" style="display: block; padding: 0.5rem;">More...</a>',
95 style: 'padding: 0;'
96 }),
93 ], 97 ],
94 }); 98 });
95 99