feat(popup): 移除画板功能并调整弹窗尺寸

- 删除了画板菜单项及相关功能代码
- 移除了画板相关的导入和函数定义
- 将弹窗默认项目数从3调整为2,减小弹窗高度
- 更新了弹窗尺寸计算逻辑以适应新的项目数量
```
This commit is contained in:
2026-03-15 21:03:34 +08:00
parent 2da9c45b61
commit 85ea1396bb
2 changed files with 2 additions and 17 deletions

View File

@ -49,7 +49,7 @@ pub async fn create_popup_window_impl<R: Runtime>(app: &AppHandle<R>, target: &T
/// 根据用户登录状态和课程选择情况动态计算弹出窗口高度
pub fn calculate_popup_size_sync() -> PopupSize {
// 默认基础项目数
let item_num = 3;
let item_num = 2;
// 根据项目数计算高度每个项目40像素加上边距2像素
let popup_height = 40 * item_num + 2;
let popup_width = 180;