diff --git a/layouts/header/style.css b/layouts/header/style.css
index 075f9e66..3fcffd5f 100644
--- a/layouts/header/style.css
+++ b/layouts/header/style.css
@@ -1591,4 +1591,14 @@ emoji-picker {
5%, 100% {
transform: translate(0, 0);
}
+}
+.tweet .tweet-header-name {
+ max-width: 300px;
+ display: inline-block;
+ overflow: hidden;
+ vertical-align: middle;
+}
+.tweet-top-text {
+ overflow: hidden;
+ max-width: 500px;
}
\ No newline at end of file
diff --git a/layouts/profile/script.js b/layouts/profile/script.js
index 66297a31..c2c6be1a 100644
--- a/layouts/profile/script.js
+++ b/layouts/profile/script.js
@@ -493,7 +493,7 @@ async function renderProfile() {
updateSelection();
- document.getElementById('profile-bio').innerHTML = escapeHTML(pageUser.description).replace(/\n/g, '
').replace(/((http|https|ftp):\/\/[\w?=.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g, '$1').replace(/(?@$1`).replace(/(?#$1`);
+ document.getElementById('profile-bio').innerHTML = escapeHTML(pageUser.description).replace(/\n\n\n\n/g, "\n").replace(/\n/g, '
').replace(/((http|https|ftp):\/\/[\w?=.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g, '$1').replace(/(?@$1`).replace(/(?#$1`);
let textWithoutLinks = pageUser.description.replace(/(?:https?|ftp):\/\/[\n\S]+/g, '').replace(/(? 60 && isEnglish.languages[0].language.startsWith(LANGUAGE);
@@ -841,7 +841,7 @@ async function renderProfile() {
if(pageUser.location) {
let location = document.createElement('span');
location.classList.add('profile-additional-thing', 'profile-additional-location');
- location.innerText = pageUser.location;
+ location.innerText = pageUser.location.replace(/\n\n\n\n/g, "\n");
additionalInfo.appendChild(location);
if(vars.enableTwemoji) twemoji.parse(location);
}
diff --git a/layouts/profile/style.css b/layouts/profile/style.css
index da248d48..0cfab568 100644
--- a/layouts/profile/style.css
+++ b/layouts/profile/style.css
@@ -902,7 +902,8 @@ a:hover,
line-height: 1;
word-wrap: break-word;
margin: 0;
- text-rendering: optimizeLegibility
+ text-rendering: optimizeLegibility;
+ overflow: hidden;
}
.piu-a {
@@ -951,7 +952,8 @@ a:hover,
font-weight: 400;
line-height: 20px;
margin-bottom: 10px;
- word-wrap: break-word
+ word-wrap: break-word;
+ overflow: hidden;
}
#tweet-nav[hidden] {
@@ -1277,7 +1279,8 @@ a:hover,
border: 1px solid var(--border);
border-radius: 5px;
background: var(--background-color);
- font-size: 14px
+ font-size: 14px;
+ overflow: hidden;
}
#tweet-to:hover {
diff --git a/manifest.json b/manifest.json
index a96c4102..e10a94ff 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name": "Old Twitter Layout (2022)",
"description": "__MSG_ext_description__",
- "version": "1.6.4.6",
+ "version": "1.6.4.7",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {