Skip to content

feat: allow the window to be maximized - #5

Merged
whes1015 merged 1 commit into
mainfrom
feat/maximizable-window
Oct 20, 2026
Merged

whes1015 merged 1 commit into
mainfrom
feat/maximizable-window

Conversation

@whes1015

Copy link
Copy Markdown
Member

這個 PR 做了什麼

讓 StorViz 視窗可以最大化。issue #1 的截圖裡,標題列的最大化按鈕是停用的。

  • src-tauri/tauri.conf.json:maximizable 改為 true,resizable 也改為 true。macOS 的綠色按鈕和 Windows 的最大化都需要視窗可調整大小,否則系統仍會把按鈕關掉。預設仍是 840×630,最小尺寸也鎖在這組,避免縮得比現在的版面還小。
  • src/app/analyze/page.tsx:分析結果外層從固定 w-[840px] 改成 w-full。圖表欄是 1fr,檔案列表維持 260px,最大化之後圖會跟著變大,不會留一塊空白。

首頁本來就是置中,放大後仍置中。沒有改掃描或圖的計算。

相關 issue

closes #1

怎麼驗

  • 看過 tauri.conf.json 的視窗設定,以及分析頁外層寬度。
  • 尚未在 Tauri 視窗裡點過最大化:請在 macOS 或 Windows 打開 App,確認標題列可以最大化,還原後回到原本大小,分析頁的圖會跟著變寬、右邊檔案列表仍在。

檢查清單

  • tool/check/commits.sh:這個 repo 沒有這支腳本
  • 一個 commit 一件事
  • flutter analyze / flutter test:這是 Tauri / Next,不適用
  • 沒有新增使用者可見字串
  • CI:推上去之後看 gh pr checks。本機沒有把整個 Tauri app 跑起來
  • 實機看過最大化:還沒有

The maximize button was disabled and the analysis view stayed 840px wide, so a larger window could not show the chart.
@whes1015
whes1015 merged commit 053b5f3 into main Oct 20, 2026
7 checks passed
@whes1015
whes1015 deleted the feat/maximizable-window branch October 20, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

建議允許程式視窗最大化。

1 participant