diff --git a/Resources/Plugins/edit-design/browser.js b/Resources/Plugins/edit-design/browser.js index b29e8708..e8893b64 100644 --- a/Resources/Plugins/edit-design/browser.js +++ b/Resources/Plugins/edit-design/browser.js @@ -331,7 +331,7 @@ enabled(){ this.css.insert("#general_settings .cf { display: none !important }"); this.css.insert("#settings-modal .js-setting-list li:nth-child(3) { border-bottom: 1px solid #ccd6dd }"); - this.css.insert(".txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: "+this.config.fontSize+" !important }"); + this.css.insert("html[data-td-font] { font-size: "+this.config.fontSize+" !important }"); this.css.insert(".avatar { border-radius: "+this.config.avatarRadius+"% !important }"); let notificationScrollbarColor = null; @@ -507,7 +507,7 @@ enabled(){ $TDP.injectIntoNotificationsBefore(this.$token, "css", "</head>", ` <style type='text/css'> -.txt-base-smallest:not(.icon), .txt-base-largest:not(.icon) { font-size: ${this.config.fontSize} !important } +html[data-td-font] { font-size: ${this.config.fontSize} !important } .avatar { border-radius: ${this.config.avatarRadius}% !important } ${this.config.revertIcons ? ` diff --git a/Resources/Scripts/pages/example.html b/Resources/Scripts/pages/example.html index a455457f..75bd8d41 100644 --- a/Resources/Scripts/pages/example.html +++ b/Resources/Scripts/pages/example.html @@ -3,7 +3,7 @@ <div class="js-tweet tweet"> <header class="tweet-header"> <time class="tweet-timestamp js-timestamp pull-right txt-mute"> - <a target="_blank" rel="url" href="https://twitter.com/chylexmc" class="txt-small">0s</a> + <a target="_blank" rel="url" href="https://twitter.com/chylexmc" class="txt-size-variable--12">0s</a> </time> <a target="_blank" rel="user" href="https://twitter.com/chylexmc" class="account-link link-complex block"> <div class="obj-left item-img tweet-img">