diff --git a/Cargo.lock b/Cargo.lock index 7696af80..3c063c78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6393,7 +6393,7 @@ dependencies = [ [[package]] name = "tanoshi-schema" -version = "0.1.0" +version = "0.1.1" dependencies = [ "futures-signals", "graphql_client", diff --git a/crates/tanoshi-schema/Cargo.toml b/crates/tanoshi-schema/Cargo.toml index 6aea8d56..13b52627 100644 --- a/crates/tanoshi-schema/Cargo.toml +++ b/crates/tanoshi-schema/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tanoshi-schema" -version = "0.1.0" +version = "0.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/tanoshi-schema/graphql/fetch_chapter.graphql b/crates/tanoshi-schema/graphql/fetch_chapter.graphql index 39a36456..2180ba26 100644 --- a/crates/tanoshi-schema/graphql/fetch_chapter.graphql +++ b/crates/tanoshi-schema/graphql/fetch_chapter.graphql @@ -1,6 +1,7 @@ query FetchChapter($chapterId:Int) { chapter(id: $chapterId) { title + number prev next source { diff --git a/crates/tanoshi-web/src/reader.rs b/crates/tanoshi-web/src/reader.rs index 7614fa21..d08c96f5 100644 --- a/crates/tanoshi-web/src/reader.rs +++ b/crates/tanoshi-web/src/reader.rs @@ -1,7 +1,7 @@ use std::rc::Rc; use crate::common::{Fit, ReaderSettings, Spinner, events, snackbar}; -use crate::utils::{document, proxied_image_url, window, AsyncLoader, body}; +use crate::utils::{document, proxied_image_url, window, AsyncLoader, body, format_number_title}; use crate::{ common::{Background, Direction, DisplayMode, ReaderMode}, query, @@ -93,7 +93,7 @@ impl Reader { Ok(result) => { this.manga_id.set_neq(result.manga.id); this.manga_title.set_neq(result.manga.title); - this.chapter_title.set_neq(result.title); + this.chapter_title.set_neq(format_number_title(result.number, &result.title)); this.next_chapter.set_neq(result.next); this.prev_chapter.set_neq(result.prev);