Tab preview show faster

This commit is contained in:
mauro-balades
2024-04-02 16:05:04 +02:00
parent 7eb438bd30
commit e6fcb2eac4
7 changed files with 55 additions and 28 deletions

View File

@@ -1,12 +1,30 @@
diff --git a/toolkit/content/aboutProfiles.js b/toolkit/content/aboutProfiles.js
index 15c0419a11fee377f17dd766938943024723aab0..8bf3cb00a6f1fbbec421110c5d631d88d89cbb67 100644
index 15c0419a11fee377f17dd766938943024723aab0..cce2f157642e4b1a0bb7aaddb0105d0f4e67897b 100644
--- a/toolkit/content/aboutProfiles.js
+++ b/toolkit/content/aboutProfiles.js
@@ -155,6 +155,8 @@ function display(profileData) {
@@ -117,7 +117,7 @@ function display(profileData) {
let tbody = document.createElement("tbody");
table.appendChild(tbody);
- function createItem(title, value, dir = false) {
+ function createItem(title, value, dir = false, zenAsText = false) {
let tr = document.createElement("tr");
tbody.appendChild(tr);
@@ -143,6 +143,8 @@ function display(profileData) {
value.reveal();
});
}
+ } else if (zenAsText) {
+ td.appendChild(document.createTextNode(value));
} else {
document.l10n.setAttributes(td, value);
}
@@ -155,6 +157,8 @@ function display(profileData) {
createItem("profiles-rootdir", profileData.profile.rootDir, true);
+ createItem("profiles-avatar", profileData.profile.zenAvatarPath);
+ createItem("profiles-avatar", profileData.profile.zenAvatarPath, false, true);
+
if (profileData.profile.localDir.path != profileData.profile.rootDir.path) {
createItem("profiles-localdir", profileData.profile.localDir, true);