File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454 .btn-danger {
5555 border-radius : 0 ;
56- color : $black ;
56+ color : var ( --dh-color-contrast-dark ) ;
5757 opacity : 0.8 ;
5858 padding : $spacer-1 ;
5959 & :active {
60- color : $black ;
60+ color : var ( --dh-color-contrast-dark ) ;
6161 }
6262 }
6363
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ function ErrorView({
3535 const textRef = useRef < HTMLPreElement > ( null ) ;
3636
3737 const handleResize = useCallback ( ( ) => {
38- if ( isExpanded || textRef . current == null ) {
38+ if ( isExpanded || isExpandedProp || textRef . current == null ) {
3939 return ;
4040 }
4141 const newIsExpandable =
4242 textRef . current . scrollHeight > textRef . current . clientHeight ;
4343 setIsExpandable ( newIsExpandable ) ;
44- } , [ isExpanded ] ) ;
44+ } , [ isExpanded , isExpandedProp ] ) ;
4545
4646 const debouncedHandleResize = useDebouncedCallback ( handleResize , 100 ) ;
4747
You can’t perform that action at this time.
0 commit comments