fix(desktop): update responsive styles in EntryContent and ContainerToc components, fixed #3651

- Adjusted max-width breakpoint for EntryContent to improve layout on larger screens.
- Modified visibility and styling of the ContainerToc component for better responsiveness.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-05-09 23:01:32 +08:00
parent 1b88d72d32
commit e80f8a4dd3
2 changed files with 5 additions and 2 deletions
@@ -127,7 +127,7 @@ export const EntryContent: Component<EntryContentProps> = ({
<article
data-testid="entry-render"
onContextMenu={stopPropagation}
className="@[47.5rem]:max-w-[70ch] @7xl:max-w-[80ch] relative m-auto min-w-0 max-w-[550px]"
className="@[950px]:max-w-[70ch] @7xl:max-w-[80ch] relative m-auto min-w-0 max-w-[550px]"
>
<EntryTitle entryId={entryId} compact={compact} />
@@ -254,7 +254,10 @@ export const ContainerToc = memo(
return (
<RootPortal to={wrappedElement!}>
<div className="group absolute right-[-130px] top-0 h-full w-[100px]" data-hide-in-print>
<div
className="@[770px]:block group absolute right-[-130px] top-0 hidden h-full w-[100px]"
data-hide-in-print
>
<div className="sticky top-0">
<Toc
ref={ref}