Skip to content

Commit 61904f2

Browse files
Merge pull request #280 from community-scripts/fix/269
Add Interface Port display to script detail modal header
2 parents 6bd402a + 237aee9 commit 61904f2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/app/_components/ScriptDetailModal.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,20 @@ export function ScriptDetailModal({
165165
{script.privileged && <PrivilegedBadge />}
166166
</div>
167167
</div>
168+
169+
{/* Interface Port*/}
170+
{script.interface_port && (
171+
<div className="ml-3 sm:ml-4 flex-shrink-0">
172+
<div className="bg-primary/10 border border-primary/30 rounded-lg px-3 py-1.5 sm:px-4 sm:py-2">
173+
<span className="text-xs sm:text-sm font-medium text-muted-foreground mr-2">
174+
Port:
175+
</span>
176+
<span className="text-sm sm:text-base font-semibold text-foreground font-mono">
177+
{script.interface_port}
178+
</span>
179+
</div>
180+
</div>
181+
)}
168182
</div>
169183

170184
{/* Close Button */}

0 commit comments

Comments
 (0)