Compare commits

...

4 Commits

Author SHA1 Message Date
gurusainath
ab497cad6f fix: resolved build errors 2024-07-18 15:17:25 +05:30
gurusainath
627e5be126 Merge branch 'preview' of gurusainath:makeplane/plane into fix-code-block-padding 2024-07-18 15:07:15 +05:30
Prateek Shourya
dfa4377691 [WEB-1984] fix: code block margin and copy button style. 2024-07-18 12:21:14 +05:30
sriram veeraghanta
9b4f740e6c fix: code block and inline code block padding 2024-07-18 01:27:08 +05:30
15 changed files with 6 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ export const CustomCodeInlineExtension = Mark.create<CodeOptions>({
return {
HTMLAttributes: {
class:
"rounded bg-custom-background-80 px-1 py-[2px] font-mono font-medium text-orange-500 border-[0.5px] border-custom-border-200",
"rounded bg-custom-background-80 px-[6px] py-[1.5px] font-mono font-medium text-orange-500 border-[0.5px] border-custom-border-200",
spellcheck: "false",
},
};

View File

@@ -40,9 +40,9 @@ export const CodeBlockComponent: React.FC<CodeBlockComponentProps> = ({ node })
<button
type="button"
className={cn(
"group/button hidden group-hover/code:flex items-center justify-center absolute top-2 right-2 z-10 size-8 rounded-md bg-custom-background-80 border border-custom-border-200 transition duration-150 ease-in-out",
"group/button hidden group-hover/code:flex items-center justify-center absolute top-2 right-2 z-10 size-8 rounded-md bg-custom-background-80 border border-custom-border-200 transition duration-150 ease-in-out backdrop-blur-sm",
{
"bg-green-500/10 hover:bg-green-500/10 active:bg-green-500/10": copied,
"bg-green-500/30 hover:bg-green-500/30 active:bg-green-500/30": copied,
}
)}
onClick={copyToClipboard}
@@ -55,7 +55,7 @@ export const CodeBlockComponent: React.FC<CodeBlockComponentProps> = ({ node })
</button>
</Tooltip>
<pre className="bg-custom-background-90 text-custom-text-100 rounded-lg p-8 pl-9 pr-4">
<pre className="bg-custom-background-90 text-custom-text-100 rounded-lg p-4 my-2">
<NodeViewContent as="code" className="whitespace-[pre-wrap]" />
</pre>
</NodeViewWrapper>

View File

@@ -1 +0,0 @@
export * from "@/plane-web/components/issues/worklog/activity/root";

View File

@@ -1 +0,0 @@
export * from "@/plane-web/components/issues/worklog/activity/worklog-create-button";

View File

@@ -0,0 +1,2 @@
export * from "./bulk-operations";
export * from "./worklog";

View File

@@ -1 +0,0 @@
export * from "@/plane-web/components/issues/worklog/property/root";

View File

@@ -1,2 +0,0 @@
export * from "./worklog/activity";
export * from "./worklog/property";

View File

@@ -1,2 +0,0 @@
export * from "./root";
export * from "./worklog-create-button";

View File

@@ -1 +0,0 @@
export * from "./root";