This commit is contained in:
lzyme.dev@gmail.com
2026-08-31 14:00:58 +08:00
parent 6c9a4743bb
commit 76b608ccc0
2 changed files with 111 additions and 123 deletions
+55 -61
View File
@@ -11189,7 +11189,7 @@ ${err.stack}` : "");
return ` return `
<style> <style>
.magnet-container { .magnet-container {
margin: 20px auto; margin: 12px auto;
width: 100%; width: 100%;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
} }
@@ -11201,14 +11201,14 @@ ${err.stack}` : "");
align-items: center; align-items: center;
} }
.magnet-tab { .magnet-tab {
padding: 6px 12px; padding: 4px 10px;
cursor: pointer; cursor: pointer;
border: 1px solid transparent; border: 1px solid transparent;
border-bottom: none; border-bottom: none;
margin-right: 3px; margin-right: 3px;
background: #f5f5f5; background: #f5f5f5;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
font-size: 13px; font-size: 12px;
transition: background .16s; transition: background .16s;
} }
.magnet-tab.active { .magnet-tab.active {
@@ -11224,17 +11224,17 @@ ${err.stack}` : "");
.magnet-controls { .magnet-controls {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 6px;
padding: 8px 12px; padding: 6px 10px;
background: #fafafa; background: #fafafa;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.magnet-sort-select { .magnet-sort-select {
height: 28px; height: 24px;
padding: 2px 20px 2px 6px; padding: 1px 18px 1px 5px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 11px;
color: #333; color: #333;
background: #fff; background: #fff;
cursor: pointer; cursor: pointer;
@@ -11244,29 +11244,29 @@ ${err.stack}` : "");
cursor: not-allowed; cursor: not-allowed;
} }
.magnet-results { .magnet-results {
min-height: 200px; min-height: 160px;
} }
.magnet-table { .magnet-table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
table-layout: fixed; table-layout: fixed;
font-size: 13px; font-size: 12px;
} }
.magnet-table th { .magnet-table th {
padding: 6px; padding: 4px;
background: #f8f8f8; background: #f8f8f8;
border-bottom: 2px solid #e0e0e0; border-bottom: 2px solid #e0e0e0;
font-weight: 600; font-weight: 600;
color: #555; color: #555;
font-size: 12px; font-size: 11px;
text-align: left; text-align: left;
} }
.magnet-table th.col-name { max-width: 0; } .magnet-table th.col-name { max-width: 0; }
.magnet-table th.col-size { width: 70px; text-align: center; } .magnet-table th.col-size { width: 60px; text-align: center; }
.magnet-table th.col-date { width: 90px; text-align: center; } .magnet-table th.col-date { width: 75px; text-align: center; }
.magnet-table th.col-actions { width: 180px; text-align: center; } .magnet-table th.col-actions { width: 170px; text-align: center; }
.magnet-table td { .magnet-table td {
padding: 8px 6px; padding: 5px 4px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
vertical-align: middle; vertical-align: middle;
} }
@@ -11274,12 +11274,12 @@ ${err.stack}` : "");
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.magnet-table td.col-size { text-align: center; white-space: nowrap; } .magnet-table td.col-size { text-align: center; white-space: nowrap; }
.magnet-table td.col-date { text-align: center; white-space: nowrap; font-size: 12px; color: #888; } .magnet-table td.col-date { text-align: center; white-space: nowrap; font-size: 11px; color: #888; }
.magnet-table td.col-actions { text-align: center; white-space: nowrap; } .magnet-table td.col-actions { text-align: center; white-space: nowrap; }
.magnet-name-cell { .magnet-name-cell {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 5px; gap: 4px;
min-width: 0; min-width: 0;
overflow: hidden; overflow: hidden;
} }
@@ -11293,7 +11293,7 @@ ${err.stack}` : "");
color: #243b67; color: #243b67;
font-weight: 650; font-weight: 650;
text-decoration: none; text-decoration: none;
line-height: 1; line-height: 1.4;
} }
.magnet-name-cell > a:hover { .magnet-name-cell > a:hover {
color: #1d4ed8; color: #1d4ed8;
@@ -11303,11 +11303,11 @@ ${err.stack}` : "");
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
flex-shrink: 0; flex-shrink: 0;
padding: 1px 5px; padding: 1px 4px;
border-radius: 3px; border-radius: 3px;
font-size: 11px; font-size: 10px;
font-weight: 800; font-weight: 800;
line-height: 1; line-height: 1.4;
color: #fff; color: #fff;
} }
.magnet-badge.mg-subtitle { background: #16a34a; } .magnet-badge.mg-subtitle { background: #16a34a; }
@@ -11315,17 +11315,20 @@ ${err.stack}` : "");
.magnet-badge.mg-cracked { background: #be123c; } .magnet-badge.mg-cracked { background: #be123c; }
.magnet-loading { .magnet-loading {
text-align: center; text-align: center;
padding: 20px; padding: 14px;
color: #666; color: #666;
font-size: 12px;
} }
.magnet-error { .magnet-error {
color: #f44336; color: #f44336;
padding: 10px; padding: 8px;
font-size: 12px;
} }
.magnet-empty { .magnet-empty {
text-align: center; text-align: center;
padding: 20px; padding: 14px;
color: #999; color: #999;
font-size: 12px;
} }
.magnet-empty a { .magnet-empty a {
color: #e74c3c; color: #e74c3c;
@@ -11333,51 +11336,42 @@ ${err.stack}` : "");
cursor: pointer; cursor: pointer;
} }
.magnet-hub-btn { .magnet-hub-btn {
background-color: #f0f0f0; display: inline-block;
color: #555; min-width: 36px;
border: 1px solid #ddd; padding: 4px 8px;
padding: 5px 10px; border-radius: 4px;
border-radius: 3px; color: white;
font-weight: bold;
font-size: 11px;
text-align: center;
cursor: pointer; cursor: pointer;
font-size: 12px; transition: all 0.2s ease;
transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,.12);
margin-left: 4px; text-shadow: 0 1px 1px rgba(0,0,0,.15);
border: none;
line-height: 1.3;
margin-left: 3px;
} }
.magnet-hub-btn:hover { .magnet-hub-btn:hover {
background-color: #e0e0e0; transform: translateY(-1px);
border-color: #ccc; box-shadow: 0 3px 6px rgba(0,0,0,.18);
opacity: .92;
}
.magnet-hub-btn:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
} }
.magnet-hub-btn.copied { .magnet-hub-btn.copied {
background-color: #4CAF50; background-color: #4CAF50;
color: white;
border-color: #4CAF50;
}
.magnet-hub-btn.check-btn {
color: #be185d;
border-color: #fecdd3;
background: #fff1f2;
}
.magnet-hub-btn.check-btn:hover {
background: #ffe4e6;
border-color: #fda4af;
}
.magnet-hub-btn.down-btn {
color: #137553;
border-color: #b7ddce;
background: #effaf5;
}
.magnet-hub-btn.down-btn:hover {
background: #e3f6ed;
border-color: #8ac9b3;
} }
.magnet-hub-btn.copy-btn { .magnet-hub-btn.copy-btn {
color: #4b3d87; background-color: #7c3aed;
border-color: #d0c7ee;
background: #f6f4ff;
} }
.magnet-hub-btn.copy-btn:hover { .magnet-hub-btn.check-btn {
background: #eeebff; background-color: #be185d;
border-color: #b9aae5; }
.magnet-hub-btn.down-btn {
background-color: #0d9488;
} }
.whatslink-overlay { .whatslink-overlay {
position: fixed; position: fixed;
+56 -62
View File
@@ -151,7 +151,7 @@ class MagnetHubPlugin extends BasePlugin {
return ` return `
<style> <style>
.magnet-container { .magnet-container {
margin: 20px auto; margin: 12px auto;
width: 100%; width: 100%;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
} }
@@ -163,14 +163,14 @@ class MagnetHubPlugin extends BasePlugin {
align-items: center; align-items: center;
} }
.magnet-tab { .magnet-tab {
padding: 6px 12px; padding: 4px 10px;
cursor: pointer; cursor: pointer;
border: 1px solid transparent; border: 1px solid transparent;
border-bottom: none; border-bottom: none;
margin-right: 3px; margin-right: 3px;
background: #f5f5f5; background: #f5f5f5;
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
font-size: 13px; font-size: 12px;
transition: background .16s; transition: background .16s;
} }
.magnet-tab.active { .magnet-tab.active {
@@ -186,17 +186,17 @@ class MagnetHubPlugin extends BasePlugin {
.magnet-controls { .magnet-controls {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 6px;
padding: 8px 12px; padding: 6px 10px;
background: #fafafa; background: #fafafa;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.magnet-sort-select { .magnet-sort-select {
height: 28px; height: 24px;
padding: 2px 20px 2px 6px; padding: 1px 18px 1px 5px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 11px;
color: #333; color: #333;
background: #fff; background: #fff;
cursor: pointer; cursor: pointer;
@@ -206,29 +206,29 @@ class MagnetHubPlugin extends BasePlugin {
cursor: not-allowed; cursor: not-allowed;
} }
.magnet-results { .magnet-results {
min-height: 200px; min-height: 160px;
} }
.magnet-table { .magnet-table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
table-layout: fixed; table-layout: fixed;
font-size: 13px; font-size: 12px;
} }
.magnet-table th { .magnet-table th {
padding: 6px; padding: 4px;
background: #f8f8f8; background: #f8f8f8;
border-bottom: 2px solid #e0e0e0; border-bottom: 2px solid #e0e0e0;
font-weight: 600; font-weight: 600;
color: #555; color: #555;
font-size: 12px; font-size: 11px;
text-align: left; text-align: left;
} }
.magnet-table th.col-name { max-width: 0; } .magnet-table th.col-name { max-width: 0; }
.magnet-table th.col-size { width: 70px; text-align: center; } .magnet-table th.col-size { width: 60px; text-align: center; }
.magnet-table th.col-date { width: 90px; text-align: center; } .magnet-table th.col-date { width: 75px; text-align: center; }
.magnet-table th.col-actions { width: 180px; text-align: center; } .magnet-table th.col-actions { width: 170px; text-align: center; }
.magnet-table td { .magnet-table td {
padding: 8px 6px; padding: 5px 4px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
vertical-align: middle; vertical-align: middle;
} }
@@ -236,12 +236,12 @@ class MagnetHubPlugin extends BasePlugin {
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.magnet-table td.col-size { text-align: center; white-space: nowrap; } .magnet-table td.col-size { text-align: center; white-space: nowrap; }
.magnet-table td.col-date { text-align: center; white-space: nowrap; font-size: 12px; color: #888; } .magnet-table td.col-date { text-align: center; white-space: nowrap; font-size: 11px; color: #888; }
.magnet-table td.col-actions { text-align: center; white-space: nowrap; } .magnet-table td.col-actions { text-align: center; white-space: nowrap; }
.magnet-name-cell { .magnet-name-cell {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 5px; gap: 4px;
min-width: 0; min-width: 0;
overflow: hidden; overflow: hidden;
} }
@@ -255,7 +255,7 @@ class MagnetHubPlugin extends BasePlugin {
color: #243b67; color: #243b67;
font-weight: 650; font-weight: 650;
text-decoration: none; text-decoration: none;
line-height: 1.5; line-height: 1.4;
} }
.magnet-name-cell > a:hover { .magnet-name-cell > a:hover {
color: #1d4ed8; color: #1d4ed8;
@@ -265,11 +265,11 @@ class MagnetHubPlugin extends BasePlugin {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
flex-shrink: 0; flex-shrink: 0;
padding: 1px 5px; padding: 1px 4px;
border-radius: 3px; border-radius: 3px;
font-size: 11px; font-size: 10px;
font-weight: 800; font-weight: 800;
line-height: 1.5; line-height: 1.4;
color: #fff; color: #fff;
} }
.magnet-badge.mg-subtitle { background: #16a34a; } .magnet-badge.mg-subtitle { background: #16a34a; }
@@ -277,17 +277,20 @@ class MagnetHubPlugin extends BasePlugin {
.magnet-badge.mg-cracked { background: #be123c; } .magnet-badge.mg-cracked { background: #be123c; }
.magnet-loading { .magnet-loading {
text-align: center; text-align: center;
padding: 20px; padding: 14px;
color: #666; color: #666;
font-size: 12px;
} }
.magnet-error { .magnet-error {
color: #f44336; color: #f44336;
padding: 10px; padding: 8px;
font-size: 12px;
} }
.magnet-empty { .magnet-empty {
text-align: center; text-align: center;
padding: 20px; padding: 14px;
color: #999; color: #999;
font-size: 12px;
} }
.magnet-empty a { .magnet-empty a {
color: #e74c3c; color: #e74c3c;
@@ -295,51 +298,42 @@ class MagnetHubPlugin extends BasePlugin {
cursor: pointer; cursor: pointer;
} }
.magnet-hub-btn { .magnet-hub-btn {
background-color: #f0f0f0; display: inline-block;
color: #555; min-width: 36px;
border: 1px solid #ddd; padding: 4px 8px;
padding: 5px 10px; border-radius: 4px;
border-radius: 3px; color: white;
font-weight: bold;
font-size: 11px;
text-align: center;
cursor: pointer; cursor: pointer;
font-size: 12px; transition: all 0.2s ease;
transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,.12);
margin-left: 4px; text-shadow: 0 1px 1px rgba(0,0,0,.15);
border: none;
line-height: 1.3;
margin-left: 3px;
} }
.magnet-hub-btn:hover { .magnet-hub-btn:hover {
background-color: #e0e0e0; transform: translateY(-1px);
border-color: #ccc; box-shadow: 0 3px 6px rgba(0,0,0,.18);
opacity: .92;
}
.magnet-hub-btn:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
} }
.magnet-hub-btn.copied { .magnet-hub-btn.copied {
background-color: #4CAF50; background-color: #66bb6a;
color: white;
border-color: #4CAF50;
}
.magnet-hub-btn.check-btn {
color: #be185d;
border-color: #fecdd3;
background: #fff1f2;
}
.magnet-hub-btn.check-btn:hover {
background: #ffe4e6;
border-color: #fda4af;
}
.magnet-hub-btn.down-btn {
color: #137553;
border-color: #b7ddce;
background: #effaf5;
}
.magnet-hub-btn.down-btn:hover {
background: #e3f6ed;
border-color: #8ac9b3;
} }
.magnet-hub-btn.copy-btn { .magnet-hub-btn.copy-btn {
color: #4b3d87; background-color: #8b5cf6;
border-color: #d0c7ee;
background: #f6f4ff;
} }
.magnet-hub-btn.copy-btn:hover { .magnet-hub-btn.check-btn {
background: #eeebff; background-color: #e11d48;
border-color: #b9aae5; }
.magnet-hub-btn.down-btn {
background-color: #14b8a6;
} }
.whatslink-overlay { .whatslink-overlay {
position: fixed; position: fixed;