diff --git a/webapp/packages/core-blocks/src/Code.module.css b/webapp/packages/core-blocks/src/Code.module.css deleted file mode 100644 index 76952ff2c9..0000000000 --- a/webapp/packages/core-blocks/src/Code.module.css +++ /dev/null @@ -1,12 +0,0 @@ -/* - * CloudBeaver - Cloud Database Manager - * Copyright (C) 2020-2024 DBeaver Corp and others - * - * Licensed under the Apache License, Version 2.0. - * you may not use this file except in compliance with the License. - */ -.codeContainer { - composes: theme-background-secondary theme-text-on-secondary from global; - padding: 16px; - border-radius: var(--theme-group-element-radius); -} diff --git a/webapp/packages/core-blocks/src/Code.tsx b/webapp/packages/core-blocks/src/Code.tsx index 97db46b4cc..e96dc7ae35 100644 --- a/webapp/packages/core-blocks/src/Code.tsx +++ b/webapp/packages/core-blocks/src/Code.tsx @@ -1,27 +1,30 @@ /* * CloudBeaver - Cloud Database Manager - * Copyright (C) 2020-2024 DBeaver Corp and others + * Copyright (C) 2020-2026 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ -import { observer } from 'mobx-react-lite'; -import style from './Code.module.css'; -import { s } from './s.js'; -import { useS } from './useS.js'; +import { observer } from 'mobx-react-lite'; +import { clsx } from '@dbeaver/ui-kit'; interface Props { className?: string; children?: React.ReactNode; + inline?: boolean; } -export const Code = observer(function Code({ children, className }) { - const styles = useS(style); - +export const Code = observer(function Code({ children, className, inline }) { return ( -
- {children} +
+
+ {children} +
); });