web: fix editor & toolbar alignment

This commit is contained in:
Abdullah Atta
2023-08-07 12:00:15 +05:00
parent 8431150f0a
commit 1b6a27376c
3 changed files with 5 additions and 4 deletions

View File

@@ -522,7 +522,8 @@ function EditorChrome(
maxWidth: editorMargins ? "min(100%, 850px)" : "auto",
width: "100%"
}}
px={6}
pl={6}
pr={2}
onClick={onRequestFocus}
>
{!isMobile && (

View File

@@ -335,7 +335,7 @@ function TipTap(props: TipTapProps) {
return (
<>
<Portal containerId={toolbarContainerId}>
<ScopedThemeProvider scope="editorToolbar">
<ScopedThemeProvider scope="editorToolbar" sx={{ width: "100%" }}>
<Toolbar
editor={editor}
location={isMobile ? "bottom" : "top"}

View File

@@ -239,6 +239,7 @@ function Toolbar() {
fontSize: "heading",
color: "paragraph",
p: 0,
pl: 4,
borderWidth: 0,
borderRadius: "default",
textOverflow: "ellipsis",
@@ -248,7 +249,7 @@ function Toolbar() {
/>
</Flex>
<Flex>
<Flex sx={{ gap: 1 }}>
{tools.map((tool) => (
<Button
key={tool.title}
@@ -256,7 +257,6 @@ function Toolbar() {
data-test-id={tool.title}
disabled={!tool.enabled}
title={tool.title}
mr={1}
sx={{
display: [
tool.hideOnMobile ? "none" : "flex",