Skip to content

Commit 75aed0d

Browse files
authored
fix: migrated Configuration component from SCSS to Tailwind CSS
1 parent 42d6684 commit 75aed0d

2 files changed

Lines changed: 9 additions & 24 deletions

File tree

src/components/Configuration/Configuration.scss

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/components/Configuration/components.jsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import PropTypes from "prop-types";
22
import { Component, isValidElement } from "react";
33
import Popover from "react-tiny-popover";
4-
import "./Configuration.scss";
54

65
const DEFAULT_CHILDREN_SIZE = 4;
76

@@ -17,9 +16,14 @@ const addLink = (child, i, url) =>
1716
) : (
1817
child
1918
);
19+
2020
const Card = ({ body }) => (
21-
<div className="markdown">
22-
<pre className="inline">
21+
// Applied .shadow > .markdown styles: max-height and overflow
22+
<div className="markdown max-h-[48vh] overflow-auto">
23+
{/* Combined .inline and .shadow pre.inline styles:
24+
display: block, margin: 0, padding: 0 with right-padding override
25+
*/}
26+
<pre className="block m-0 p-0 pr-[15px]">
2327
<code>{body}</code>
2428
</pre>
2529
</div>
@@ -83,7 +87,8 @@ export class Details extends Component {
8387
position={["right", "top"]}
8488
padding={0}
8589
onClickOutside={this.clickOutsideHandler}
86-
containerClassName={"shadow"}
90+
// Replaced .shadow with Tailwind equivalents, including the custom rgba box-shadow
91+
containerClassName="overflow-visible rounded shadow-[-1px_1px_10px_0_rgba(255,255,255,0.44)]"
8792
content={<Card body={content} />}
8893
>
8994
<span

0 commit comments

Comments
 (0)