.main-area-leaf { height: 100%; min-height: 0; overflow: hidden; } /* Mirror SidebarViewContainer: Obsidian ItemView mounts .view-content > * .view-content-inner, and both must inherit a constrained height so the * editor/view keeps an internal scroll container instead of expanding the * whole main area to content height. */ .main-area-leaf > .view-content { height: 100%; display: flex; flex-direction: column; } .main-area-leaf > .view-content > .view-content-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }