fix bio length autosizing

This commit is contained in:
nightpool 2018-03-12 18:41:57 -04:00 committed by Andrew
parent 61183ac419
commit 22f179f678
1 changed files with 11 additions and 0 deletions

View File

@ -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(<CardContainer locale={locale} {...props} />, content);
});
if (document.fonts && document.fonts.ready) {
document.fonts.ready.then(sizeBioText);
} else {
sizeBioText();
}
});
delegate(document, '.webapp-btn', 'click', ({ target, button }) => {