Skip to content

Commit 21da087

Browse files
committed
UI improvements; fixed offscreen race conditions
1 parent c99b933 commit 21da087

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "__MSG_appName__",
4-
"version": "1.5.11",
4+
"version": "1.5.12",
55
"description": "__MSG_appDesc__",
66
"default_locale": "en",
77
"permissions": [

plugins/m3u8-plugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ const M3U8_PLUGIN = {
319319
reasons: ['BLOBS'],
320320
justification: 'Merging video segments into a single file.'
321321
});
322+
// Give the offscreen script some time to load (fixes race condition)
323+
await new Promise(r => setTimeout(r, 500));
322324
} catch (e) {
323325
console.error('Failed to create offscreen document:', e);
324326
this._offscreenPromise = null;
@@ -336,7 +338,8 @@ const M3U8_PLUGIN = {
336338
this._fallbackTabPromise = null;
337339
reject(new Error(chrome.runtime.lastError.message));
338340
} else {
339-
resolve();
341+
// Give the tab and its scripts some time to initialize (critical for Safari)
342+
setTimeout(resolve, 1000);
340343
}
341344
});
342345
});

popup.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ table {
7171
border-collapse: collapse;
7272
background-color: #fff;
7373
border-radius: 6px;
74-
/* overflow: hidden; */
75-
/* Removing this to allow sticky header to work better if needed, but the container has overflow-y auto */
74+
table-layout: fixed; /* Force fixed layout for strict column handling */
7675
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
7776
}
7877

@@ -82,22 +81,25 @@ td {
8281
padding: 10px;
8382
border-bottom: 1px solid #eee;
8483
font-size: 13px;
84+
overflow: hidden; /* Prevent content spill */
85+
text-overflow: ellipsis;
86+
white-space: nowrap;
8587
}
8688

8789
/* Adjust column widths */
8890
th:nth-child(1),
8991
td:nth-child(1) {
90-
width: auto;
92+
width: 260px; /* Fixed width for filename */
9193
}
9294

9395
th:nth-child(2),
9496
td:nth-child(2) {
95-
width: 80px;
97+
width: 70px;
9698
}
9799

98100
th:nth-child(3),
99101
td:nth-child(3) {
100-
width: 80px;
102+
width: 70px;
101103
}
102104

103105
th:nth-child(4),
@@ -109,9 +111,6 @@ th {
109111
background-color: #f5f5f5;
110112
font-weight: 500;
111113
color: #555;
112-
position: sticky;
113-
top: 0;
114-
z-index: 1;
115114
}
116115

117116
tr:last-child td {
@@ -126,7 +125,7 @@ tr:last-child td {
126125
}
127126

128127
.filename {
129-
max-width: 300px;
128+
max-width: 240px; /* Reduced to fit in 260px column with padding/gaps */
130129
white-space: nowrap;
131130
overflow: hidden;
132131
text-overflow: ellipsis;

0 commit comments

Comments
 (0)