Skip to content

Commit

Permalink
web: fix action bar ui on web
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Dec 30, 2024
1 parent 149c201 commit f3af39a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions apps/web/src/components/editor/action-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,11 @@ function Tab(props: TabProps) {
height: "100%",
cursor: "pointer",
px: 2,
":first-of-type": {
borderLeft: "1px solid var(--border)"
},
":first-of-type": window.hasNativeTitlebar
? {}
: {
borderLeft: "1px solid var(--border)"
},
borderRight: "1px solid var(--border)",

transform: CSS.Transform.toString(transform),
Expand Down
12 changes: 6 additions & 6 deletions apps/web/src/components/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import { Pane, SplitPane } from "../split-pane";

const PDFPreview = React.lazy(() => import("../pdf-preview"));

const autoSaveToast = { show: true, hide: () => { } };
const autoSaveToast = { show: true, hide: () => {} };

async function saveContent(
noteId: string,
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function TabsView() {
{!hasNativeTitlebar ? (
<EditorActionBarPortal />
) : (
<Flex sx={{ px: 1 }}>
<Flex sx={{ px: 1, borderBottom: "1px solid var(--border)" }}>
<EditorActionBar />
</Flex>
)}
Expand Down Expand Up @@ -228,10 +228,10 @@ function EditorView({
session
}: {
session:
| DefaultEditorSession
| NewEditorSession
| ReadonlyEditorSession
| DeletedEditorSession;
| DefaultEditorSession
| NewEditorSession
| ReadonlyEditorSession
| DeletedEditorSession;
}) {
const lastChangedTime = useRef<number>(0);
const root = useRef<HTMLDivElement>(null);
Expand Down

0 comments on commit f3af39a

Please sign in to comment.