diff --git a/app/client.imba b/app/client.imba index 9c5bfcb..54686d8 100644 --- a/app/client.imba +++ b/app/client.imba @@ -249,10 +249,6 @@ tag app bang ||= config.default_bang handle_bang! - def handle_click_toggle_simplify_ui - config.enable_simplify_ui = not config.enable_simplify_ui - save_config! - def handle_click_copy s try await window.navigator.clipboard.writeText(s) @@ -270,9 +266,7 @@ tag app def render - - css self - d:flex fld:column jc:flex-start ai:center + css d:flex fld:column jc:flex-start ai:center w:80vw max-width:700px max-height:80vh bxs:0px 0px 10px rgba(0,0,0,0.35) box-sizing:border-box p:30px rd:10px mt:10vh diff --git a/app/components/app-links.imba b/app/components/app-links.imba index a21950c..a4f3333 100644 --- a/app/components/app-links.imba +++ b/app/components/app-links.imba @@ -26,14 +26,13 @@ tag app-links catch no + def toggle_effective_names + config.enable_effective_names = !config.enable_effective_names + def render - css .links - d:flex fld:column jc:flex-start fl:1 - w:100% ofy:auto pt:15px - css .link d:flex fld:row jc:space-between ai:center px:16px py:11px rd:5px cursor:pointer c:blue3 @@ -100,17 +99,16 @@ tag app-links <.header> - <.side.left - @click=handle_click_toggle_simplify_ui - > - if config.enable_simplify_ui - - else + <.side.left@click=toggle_effective_names> + if config.enable_effective_names + else + "Shift + Backspace" <.tip-content> "Edit Link" - <.links> +
+ css d:flex fld:column jc:flex-start fl:1 w:100% ofy:auto pt:15px + if not viewing_community_links and (bang or state.sorted_links.length < 1)