From e0d7e90894d330c573202746039262c45410ac34 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 3 Dec 2024 19:40:08 -0500 Subject: [PATCH] ssb: Add an overlay for the sidebar so that it can be closed by tapping back on the content. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 3908ee46..22685c56 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&kAAjuIOpPmvwRqQKyFIexrTclB3vLAWGwfDgRy16npA=.sha256" + "previous": "&eNt+jXQkI/zOdhmV7bpHSY/m4son/xtQocFj14hxUII=.sha256" } diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index 443a4435..8321fb82 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -119,10 +119,12 @@ class TfTabNewsElement extends LitElement { show_sidebar() { this.renderRoot.getElementById('sidebar').style.display = 'block'; + this.renderRoot.getElementById('sidebar_overlay').style.display = 'block'; } hide_sidebar() { this.renderRoot.getElementById('sidebar').style.display = 'none'; + this.renderRoot.getElementById('sidebar_overlay').style.display = 'none'; } async channel_toggle_subscribed() { @@ -169,7 +171,7 @@ class TfTabNewsElement extends LitElement { `; } return html` -