From 22f179f67875f43e393b701527e70579e299a47f Mon Sep 17 00:00:00 2001 From: nightpool Date: Mon, 12 Mar 2018 18:41:57 -0400 Subject: [PATCH] fix bio length autosizing --- app/javascript/packs/public.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 3915039c5..a8ba9ddb0 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -97,6 +97,17 @@ function main() { detailedStatuses[0].scrollIntoView(); history.replace(location.pathname, { ...location.state, scrolledToDetailedStatus: true }); } + + [].forEach.call(document.querySelectorAll('[data-component="Card"]'), (content) => { + const props = JSON.parse(content.getAttribute('data-props')); + ReactDOM.render(, content); + }); + + if (document.fonts && document.fonts.ready) { + document.fonts.ready.then(sizeBioText); + } else { + sizeBioText(); + } }); delegate(document, '.webapp-btn', 'click', ({ target, button }) => {