diff --git a/src/App.css b/src/App.css
index cd7bf93..8022b77 100644
--- a/src/App.css
+++ b/src/App.css
@@ -891,6 +891,30 @@ h1, h2, h3 { font-weight: 900; letter-spacing: -1px; }
border-top: 1px solid var(--border);
}
+
+.github-link-secondary {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ margin-top: 12px;
+ padding: 10px;
+ color: var(--text-muted, #888);
+ text-decoration: none;
+ font-size: 0.9rem;
+ font-weight: 500;
+ transition: color 0.2s ease;
+}
+
+.github-link-secondary:hover {
+ color: var(--text-main, #ffffff);
+ text-decoration: underline;
+}
+
+.github-link-secondary svg {
+ opacity: 0.8;
+}
+
.review-already-icon {
width: 36px;
height: 36px;
diff --git a/src/pages/PluginDetail.tsx b/src/pages/PluginDetail.tsx
index dcf4b52..b885bc6 100644
--- a/src/pages/PluginDetail.tsx
+++ b/src/pages/PluginDetail.tsx
@@ -249,13 +249,24 @@ const PluginDetail = () => {
if (!plugin) return
LOADING...
;
+ const formatSize = (bytes: number) => {
+ if (!bytes) return '';
+ if (bytes >= 1048576) return `(${(bytes / 1048576).toFixed(2)} MB)`;
+ if (bytes >= 1024) return `(${(bytes / 1024).toFixed(1)} KB)`;
+ return `(${bytes} B)`;
+ };
+
const downloadLabel = (() => {
+ const sizeStr = plugin.file_size ? ` ${formatSize(plugin.file_size)}` : '';
+
if (plugin.type === 'paid') {
if (!ownershipChecked) return 'Loading…';
- return ownsPlugin ? 'Download Latest WASM' : 'Purchase Plugin';
+ return ownsPlugin ? `Download ${sizeStr}` : 'Purchase Plugin';
}
+
if (plugin.type === 'adwall' && !adShown) return 'Watch Ad to Download';
- return 'Download Latest WASM';
+
+ return `Download ${sizeStr}`;
})();
const productSchema = {
@@ -282,7 +293,7 @@ const PluginDetail = () => {
return (
-
{
{plugin.source_link && (
-
+
+
View Source Code
)}
@@ -516,17 +544,6 @@ const PluginDetail = () => {
{plugin.version && (
Version: {plugin.version}
)}
- {plugin.file_size != null && (
-
- File Size:
- {plugin.file_size >= 1_048_576
- ? `${(plugin.file_size / 1_048_576).toFixed(2)} MB`
- : plugin.file_size >= 1_024
- ? `${(plugin.file_size / 1_024).toFixed(1)} KB`
- : `${plugin.file_size} B`}
-
-
- )}
{user && !reportDone && (