[WEB-1984] fix: code block padding and margin in pages. (#5152)
This commit is contained in:
parent
2554110397
commit
281948c1ce
15 changed files with 6 additions and 12 deletions
|
|
@ -33,7 +33,7 @@ export const CustomCodeInlineExtension = Mark.create<CodeOptions>({
|
||||||
return {
|
return {
|
||||||
HTMLAttributes: {
|
HTMLAttributes: {
|
||||||
class:
|
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",
|
spellcheck: "false",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,9 @@ export const CodeBlockComponent: React.FC<CodeBlockComponentProps> = ({ node })
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={cn(
|
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}
|
onClick={copyToClipboard}
|
||||||
|
|
@ -55,7 +55,7 @@ export const CodeBlockComponent: React.FC<CodeBlockComponentProps> = ({ node })
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</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]" />
|
<NodeViewContent as="code" className="whitespace-[pre-wrap]" />
|
||||||
</pre>
|
</pre>
|
||||||
</NodeViewWrapper>
|
</NodeViewWrapper>
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from "@/plane-web/components/issues/worklog/activity/root";
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from "@/plane-web/components/issues/worklog/activity/worklog-create-button";
|
|
||||||
2
web/ee/components/issues/index.ts
Normal file
2
web/ee/components/issues/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
export * from "./bulk-operations";
|
||||||
|
export * from "./worklog";
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from "@/plane-web/components/issues/worklog/property/root";
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
export * from "./worklog/activity";
|
|
||||||
export * from "./worklog/property";
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
export * from "./root";
|
|
||||||
export * from "./worklog-create-button";
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from "./root";
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue