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/AppWindowContainer.js"
css(`
#homeContainer {
transition: left .2s;
}
`)
class Home extends Shadow {
dragStartX = null
@@ -94,8 +88,8 @@ class Home extends Shadow {
this.sidebarOpen = false
} else {
this.$("#homeContainer").style.transition = "left .2s"
this.sidebarOpen = true
this.$("#homeContainer").style.left = `${oneThird * 2}px`
this.sidebarOpen = true
}
this.$("#homeContainer").style.transition = ""

View File

@@ -30,6 +30,8 @@ css(`
`)
class Announcements extends Shadow {
announcements;
constructor() {
super()
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)
.paddingTop(15, vh)
.paddingHorizontal(1, em)
.height(window.visualViewport.height - 20, px)
.top(20, px)
.height(105, vh)
.top(-5, vh)
.minWidth(0)
.boxSizing("border-box")
.width((window.outerWidth / 3) * 2, px)