11import PropTypes from "prop-types" ;
22import { Component , isValidElement } from "react" ;
33import Popover from "react-tiny-popover" ;
4- import "./Configuration.scss" ;
54
65const DEFAULT_CHILDREN_SIZE = 4 ;
76
@@ -17,9 +16,14 @@ const addLink = (child, i, url) =>
1716 ) : (
1817 child
1918 ) ;
19+
2020const 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