```
feat(popup): 移除画板功能并调整弹窗尺寸 - 删除了画板菜单项及相关功能代码 - 移除了画板相关的导入和函数定义 - 将弹窗默认项目数从3调整为2,减小弹窗高度 - 更新了弹窗尺寸计算逻辑以适应新的项目数量 ```
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user