mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-18 10:49:02 +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,
|
const { html, useState } = globalThis.__enhancerApi,
|
||||||
$container = html`<div
|
$container = html`<div
|
||||||
class="overflow-(y-auto x-hidden)
|
class="overflow-(y-auto x-hidden)
|
||||||
h-full min-w-[var(--panel--width)]"
|
h-[calc(100%-46px)] min-w-[var(--panel--width)]"
|
||||||
></div>`;
|
></div>`;
|
||||||
useState(["rerender"], async () => {
|
useState(["rerender"], async () => {
|
||||||
const openView = await _get?.(),
|
const openView = await _get?.(),
|
||||||
|
@ -48,7 +48,7 @@ export default async (api, db) => {
|
|||||||
decoration-(2 [color:var(--theme--fg-border)])
|
decoration-(2 [color:var(--theme--fg-border)])
|
||||||
hover:bg-[color:var(--theme--bg-hover)]
|
hover:bg-[color:var(--theme--bg-hover)]
|
||||||
py-[6px] pr-[2px] pl-[${indent * 18}px]
|
py-[6px] pr-[2px] pl-[${indent * 18}px]
|
||||||
underline-(& offset-4)"
|
underline-(& offset-4) last:mb-[24px]"
|
||||||
...${props}
|
...${props}
|
||||||
>
|
>
|
||||||
${children}
|
${children}
|
||||||
|
Loading…
Reference in New Issue
Block a user