Compare commits

..

3 Commits

Author SHA1 Message Date
徐涛
5c092cad17 fix(list):调整文件夹树布局。 2023-03-27 18:47:15 +08:00
徐涛
f38165d8d2 fix(app):修复自动设置窗口标题的功能。 2023-03-24 09:29:20 +08:00
徐涛
49a800fb4b build(version):更改发布版本号。 2023-03-23 16:02:03 +08:00
5 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "comic_viewer",
"private": true,
"version": "0.2.5",
"version": "0.2.7",
"type": "module",
"scripts": {
"dev": "vite",

2
src-tauri/Cargo.lock generated
View File

@@ -326,7 +326,7 @@ dependencies = [
[[package]]
name = "comic_viewer"
version = "0.2.5"
version = "0.2.7"
dependencies = [
"anyhow",
"chrono",

View File

@@ -1,6 +1,6 @@
[package]
name = "comic_viewer"
version = "0.2.5"
version = "0.2.7"
description = "漫画、条漫简易阅读器"
authors = ["Khadgar"]
license = "MIT"

View File

@@ -20,8 +20,8 @@ pub fn update_window_title_with_app<R: Runtime>(
ext: Option<String>,
) -> anyhow::Result<()> {
let app_name = match app {
AppHold::Instance(app) => app.package_info().name.clone(),
AppHold::Handle(app) => app.package_info().name.clone(),
AppHold::Instance(app) => app.config().tauri.windows[0].title.clone(),
AppHold::Handle(app) => app.config().tauri.windows[0].title.clone(),
};
if let Some(ext) = ext {
window.set_title(&format!("{} - {}", app_name, ext))?;

View File

@@ -142,7 +142,8 @@ export const DirTree: FC = () => {
h="100%"
spacing={8}
px={4}
py={4}
pt={4}
pb={40}
pos="relative"
sx={{ overflow: 'auto' }}
ref={viewRef}