Fixed constant not used correctly
This commit is contained in:
parent
aba0ed40da
commit
7979f3c02e
3 changed files with 5 additions and 13 deletions
|
|
@ -551,10 +551,3 @@ export const NOUNS: string[] = [
|
|||
*
|
||||
*/
|
||||
export const USER_PROJECTS_HEADER = "My Collection";
|
||||
/**
|
||||
* CSS for highlight HTML
|
||||
* @constant
|
||||
*
|
||||
*/
|
||||
export const HIGHLIGHT_CSS =
|
||||
"block px-3 py-2 w-full h-full text-sm outline-0 border-0 break-all overflow-y-hidden";
|
||||
|
|
|
|||
|
|
@ -929,6 +929,9 @@ The cursor: default; property value restores the browser's default cursor style
|
|||
.form-modal-lock-false {
|
||||
@apply bg-white text-primary
|
||||
}
|
||||
.code-highlight{
|
||||
@apply block px-3 py-2 w-full h-full text-sm outline-0 border-0 break-all overflow-y-hidden
|
||||
}
|
||||
.form-modal-lockchat {
|
||||
@apply form-input focus:ring-ring focus:border-ring block w-full rounded-md border-border p-4 pr-16 custom-scroll sm:text-sm
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,7 @@ import {
|
|||
DialogTrigger,
|
||||
} from "../../components/ui/dialog";
|
||||
import { Textarea } from "../../components/ui/textarea";
|
||||
import {
|
||||
HIGHLIGHT_CSS,
|
||||
PROMPT_DIALOG_SUBTITLE,
|
||||
TEXT_DIALOG_SUBTITLE,
|
||||
} from "../../constants";
|
||||
import { PROMPT_DIALOG_SUBTITLE, TEXT_DIALOG_SUBTITLE } from "../../constants";
|
||||
import { alertContext } from "../../contexts/alertContext";
|
||||
import { darkContext } from "../../contexts/darkContext";
|
||||
import { PopUpContext } from "../../contexts/popUpContext";
|
||||
|
|
@ -119,7 +115,7 @@ export default function GenericModal({
|
|||
const TextAreaContentView = () => {
|
||||
return (
|
||||
<SanitizedHTMLWrapper
|
||||
className={HIGHLIGHT_CSS}
|
||||
className="code-highlight"
|
||||
content={coloredContent}
|
||||
onClick={() => {
|
||||
setIsEdit(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue