From 7577db895901c80b1711a17e7f4f1df94c31bbc6 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Fri, 29 Nov 2024 18:55:02 +0800 Subject: [PATCH] opt: remove the tooltip ,too simple to display --- src/article_maker.cc | 17 ++--------------- src/scripts/gd-builtin.js | 2 -- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/article_maker.cc b/src/article_maker.cc index 61feccbd5..4ca45ee11 100644 --- a/src/article_maker.cc +++ b/src/article_maker.cc @@ -133,19 +133,6 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word, QString const & R"(\n"; } - result += QString::fromUtf8( R"( - -)" ) - .arg( tr( "Expand article" ), tr( "Collapse article" ) ) - .toStdString(); - result += R"()"; result += R"()"; @@ -676,11 +663,11 @@ void ArticleRequest::bodyFinished() )" ), dictId, collapse ? R"(style="cursor:pointer;")" : "", - collapse ? tr( "Expand article" ).toStdString() : "", + "", Html::escape( tr( "From " ).toStdString() ), Html::escape( activeDict->getName() ), collapse ? "gdexpandicon" : "gdcollapseicon", - collapse ? "" : tr( "Collapse article" ).toStdString() ); + "" ); head += R"(
)"; diff --git a/src/scripts/gd-builtin.js b/src/scripts/gd-builtin.js index 716454980..45c5971a3 100644 --- a/src/scripts/gd-builtin.js +++ b/src/scripts/gd-builtin.js @@ -98,7 +98,6 @@ function gdExpandArticle(id) { nm = document.getElementById("gddictname-" + id); nm.style.cursor = "pointer"; if (ev) ev.stopPropagation(); - ico.title = tr("Expand article"); nm.title = ""; articleview.collapseInHtml(id, true); } else if (elem.style.display == "none") { @@ -108,7 +107,6 @@ function gdExpandArticle(id) { nm = document.getElementById("gddictname-" + id); nm.style.cursor = "default"; nm.title = ""; - ico.title = tr("Collapse article"); articleview.collapseInHtml(id, false); } }