️ 完善组件样式 #64

*优化换行符渲染
*增加网页活动识别
*调整折叠文本样式
*限制最大宽度而非写死宽度
This commit is contained in:
BTMuli
2023-12-06 20:21:00 +08:00
parent 0f07f8c031
commit 03b83ba2d1
5 changed files with 181 additions and 55 deletions

View File

@@ -34,6 +34,7 @@ pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
mhy_window_config.url = get_mhy_client_url(func.clone());
}
if func == "birthday"
|| func == "web_act"
|| url.starts_with("https://webstatic.mihoyo.com/ys/event/e20220303-birthday/index.html")
{
mhy_window_config.width = 1280.0;