fix(ui,install): Models page couldn't scroll to installed models; report install result in original window
Models.jsx clipped the whole card with overflow:hidden while only the "Available Models" section (never visible when the hardware-recommended list alone filled the card) had its own scroll — the installed-models list was unreachable with no scrollbar. The whole card now scrolls as one region instead. install-windows.ps1's original (non-elevated) window printed "Requesting administrator privileges..." and exited immediately, so all real progress and the "installed!" banner only ever appeared in the separate elevated window — making the original window look like it silently quit. It now waits (-Wait -PassThru) and reports success/failure itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+14
-2
@@ -82,8 +82,20 @@ $IsAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden
|
||||
[Security.Principal.WindowsBuiltInRole]::Administrator)
|
||||
if (-not $IsAdmin) {
|
||||
Write-Host "Requesting administrator privileges..." -ForegroundColor Yellow
|
||||
Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs
|
||||
exit
|
||||
# -Wait -PassThru so this window blocks until the elevated install finishes
|
||||
# and can report success/failure itself - without it, this window just says
|
||||
# "Requesting..." and exits immediately, while all real progress (and the
|
||||
# "installed!" banner) happens in the separate elevated window, making the
|
||||
# original window look like it silently quit.
|
||||
$proc = Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs -Wait -PassThru
|
||||
Write-Host ""
|
||||
if ($proc.ExitCode -eq 0) {
|
||||
Write-Host " NexusOS installed successfully." -ForegroundColor Green
|
||||
Write-Host " Open a NEW terminal and run 'ncp help', or double-click the NexusOS desktop shortcut." -ForegroundColor White
|
||||
} else {
|
||||
Write-Host " Install did not finish (exit code $($proc.ExitCode)). Check the elevated window for errors." -ForegroundColor Red
|
||||
}
|
||||
exit $proc.ExitCode
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
|
||||
@@ -161,7 +161,8 @@ export function Models({ onPullStateChange }) {
|
||||
padding: "1rem",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
overflow: "hidden"
|
||||
overflowY: "auto",
|
||||
overflowX: "hidden"
|
||||
}}>
|
||||
{/* Pull Model Section */}
|
||||
<div style={{ marginBottom: "1.5rem", paddingBottom: "1rem", borderBottom: "1px solid #333" }}>
|
||||
@@ -260,7 +261,7 @@ export function Models({ onPullStateChange }) {
|
||||
)}
|
||||
|
||||
{/* Local Models List */}
|
||||
<div style={{ flexGrow: 1, overflowY: "auto", paddingRight: "0.5rem" }}>
|
||||
<div style={{ paddingRight: "0.5rem" }}>
|
||||
<h3 style={{ margin: "0 0 1rem 0", fontSize: "0.95rem", color: "#bbb" }}>
|
||||
Available Models ({models.length})
|
||||
</h3>
|
||||
|
||||
Reference in New Issue
Block a user