mirror of
https://github.com/zen-browser/desktop.git
synced 2026-09-23 21:03:55 +00:00
gh-15494: Fixed library media tab freezing (gh-15495)
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
const targetRadius = window.matchMedia("(-moz-mac-tahoe-theme)")
|
||||
.matches
|
||||
? 11
|
||||
: 10;
|
||||
: 9;
|
||||
document.documentElement.style.setProperty(
|
||||
"--zen-border-radius",
|
||||
targetRadius + "px"
|
||||
|
||||
@@ -70,7 +70,11 @@ export function contentTypeOf(fileName) {
|
||||
if (!extension) {
|
||||
return "";
|
||||
}
|
||||
return lazy.mimeService.getTypeFromExtension(extension);
|
||||
try {
|
||||
return lazy.mimeService.getTypeFromExtension(extension);
|
||||
} catch {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3314,7 +3314,7 @@ class nsZenWorkspaces {
|
||||
parent.removeAttribute("icons-overflow");
|
||||
return;
|
||||
}
|
||||
const maxButtonSize = 32; // IMPORTANT: This should match the CSS size of the icons
|
||||
const maxButtonSize = AppConstants.platform == "macosx" ? 34 : 32; // IMPORTANT: This should match the CSS size of the icons
|
||||
const minButtonSize = maxButtonSize / 2; // Minimum size for icons when space is limited
|
||||
const separation = 3; // Space between icons
|
||||
|
||||
|
||||
Reference in New Issue
Block a user