Skip to content

Commit

Permalink
chore: editor width
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 committed May 1, 2024
1 parent b7ee644 commit 8e93962
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions web/components/pages/editor/editor-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
<div
className={cn("sticky top-0 hidden h-full flex-shrink-0 -translate-x-full p-5 duration-200 md:block", {
"translate-x-0": sidePeekVisible,
"w-56 lg:w-72": !isFullWidth,
"w-[10%]": isFullWidth,
"w-40 lg:w-56": !isFullWidth,
"w-[5%]": isFullWidth,
})}
>
{!isFullWidth && (
Expand All @@ -104,8 +104,8 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
</div>
<div
className={cn("h-full w-full pt-5", {
"md:w-[calc(100%-14rem)] xl:w-[calc(100%-18rem-18rem)]": !isFullWidth,
"md:w-[80%]": isFullWidth,
"md:w-[calc(100%-10rem)] xl:w-[calc(100%-14rem-14rem)]": !isFullWidth,
"md:w-[90%]": isFullWidth,
})}
>
<div className="h-full w-full flex flex-col gap-y-7 overflow-y-auto overflow-x-hidden">
Expand Down Expand Up @@ -164,8 +164,8 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
</div>
<div
className={cn("hidden xl:block flex-shrink-0", {
"w-56 lg:w-72": !isFullWidth,
"w-[10%]": isFullWidth,
"w-40 lg:w-56": !isFullWidth,
"w-[5%]": isFullWidth,
})}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/components/pages/editor/header/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export const PageEditorHeaderRoot: React.FC<Props> = observer((props) => {
<div className="hidden md:flex items-center border-b border-custom-border-200 px-3 py-2 md:px-5">
<div
className={cn("flex-shrink-0", {
"w-56 lg:w-72": !isFullWidth,
"w-[10%]": isFullWidth,
"w-40 lg:w-56": !isFullWidth,
"w-[5%]": isFullWidth,
})}
>
<PageSummaryPopover
Expand Down

0 comments on commit 8e93962

Please sign in to comment.