Correctly resize full width images when table of contents is opened/closed (#5826)
* stash * restore * Self review
This commit is contained in:
@@ -8,7 +8,7 @@ const URL_REGEX = /^https:\/\/(www\.)?berrycast.com\/conversations\/(.*)$/;
|
||||
export default function Berrycast(props: Props) {
|
||||
const normalizedUrl = props.attrs.href.replace(/\/$/, "");
|
||||
const ref = React.useRef<HTMLDivElement>(null);
|
||||
const { width } = useComponentSize(ref);
|
||||
const { width } = useComponentSize(ref.current);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user