preliminary sidebar fixes

This commit is contained in:
metacryst
2026-03-20 17:16:05 -05:00
parent 56f7c7d3a3
commit 1c6f12c210
3 changed files with 5 additions and 9 deletions

View File

@@ -2,12 +2,6 @@ import "../components/Sidebar.js"
import "../components/AppMenu.js" import "../components/AppMenu.js"
import "../components/AppWindowContainer.js" import "../components/AppWindowContainer.js"
css(`
#homeContainer {
transition: left .2s;
}
`)
class Home extends Shadow { class Home extends Shadow {
dragStartX = null dragStartX = null
@@ -94,8 +88,8 @@ class Home extends Shadow {
this.sidebarOpen = false this.sidebarOpen = false
} else { } else {
this.$("#homeContainer").style.transition = "left .2s" this.$("#homeContainer").style.transition = "left .2s"
this.sidebarOpen = true
this.$("#homeContainer").style.left = `${oneThird * 2}px` this.$("#homeContainer").style.left = `${oneThird * 2}px`
this.sidebarOpen = true
} }
this.$("#homeContainer").style.transition = "" this.$("#homeContainer").style.transition = ""

View File

@@ -30,6 +30,8 @@ css(`
`) `)
class Announcements extends Shadow { class Announcements extends Shadow {
announcements;
constructor() { constructor() {
super() super()
this.announcements = global.currentNetwork.data.announcements.sort((a, b) => new Date(b.created) - new Date(a.created)); this.announcements = global.currentNetwork.data.announcements.sort((a, b) => new Date(b.created) - new Date(a.created));

View File

@@ -59,8 +59,8 @@ class Sidebar extends Shadow {
.gap(1, em) .gap(1, em)
.paddingTop(15, vh) .paddingTop(15, vh)
.paddingHorizontal(1, em) .paddingHorizontal(1, em)
.height(window.visualViewport.height - 20, px) .height(105, vh)
.top(20, px) .top(-5, vh)
.minWidth(0) .minWidth(0)
.boxSizing("border-box") .boxSizing("border-box")
.width((window.outerWidth / 3) * 2, px) .width((window.outerWidth / 3) * 2, px)