mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-04 04:39:03 +00:00
fix: set exact panel view height to prevent overflow
This commit is contained in:
parent
d8b6aef698
commit
beb5873788
@ -34,7 +34,7 @@ function View({ _get }) {
|
||||
const { html, useState } = globalThis.__enhancerApi,
|
||||
$container = html`<div
|
||||
class="overflow-(y-auto x-hidden)
|
||||
h-full min-w-[var(--panel--width)]"
|
||||
h-[calc(100%-46px)] min-w-[var(--panel--width)]"
|
||||
></div>`;
|
||||
useState(["rerender"], async () => {
|
||||
const openView = await _get?.(),
|
||||
|
@ -48,7 +48,7 @@ export default async (api, db) => {
|
||||
decoration-(2 [color:var(--theme--fg-border)])
|
||||
hover:bg-[color:var(--theme--bg-hover)]
|
||||
py-[6px] pr-[2px] pl-[${indent * 18}px]
|
||||
underline-(& offset-4)"
|
||||
underline-(& offset-4) last:mb-[24px]"
|
||||
...${props}
|
||||
>
|
||||
${children}
|
||||
|
Loading…
Reference in New Issue
Block a user