From 6d05afebc4f0662683f92a9ef552f6f7e0b04659 Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Fri, 23 Aug 2024 00:32:29 +0800 Subject: [PATCH 1/4] Fix scaled language icon in dropdown (#8546) --- themes/tiddlywiki/vanilla/base.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 4adf116b9..d95df90b1 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -707,7 +707,7 @@ html body.tc-body .tc-btn-rounded:hover svg { } button svg.tc-image-button, button .tc-image-button img { - height: 1em; + height: auto; width: 1em; } @@ -2819,7 +2819,7 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta } .tc-language-chooser .tc-image-button img { - width: 2em; + width: auto; vertical-align: -0.15em; } From 6264aa22d02a5b7af1df6bc4ba9ba9b0f03d83be Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Sat, 24 Aug 2024 20:57:24 +0800 Subject: [PATCH 2/4] Fix unwrapped oveflowed code blocks not showing scroll bars when setting "Wrap long lines in code blocks" to "No" in "Theme tweaks" (#8413) * Fix unwrapped oveflowed code blocks not showing scroll bars * Inline code should not follow "Wrap long lines in code blocks" option * Revert "Inline code should not follow "Wrap long lines in code blocks" option" This reverts commit 4615a04e59760e57b600920d09d3538b577543c6. * Inline code should not obey "Wrap long lines in code blocks" option Fix problem described in #8549 --- themes/tiddlywiki/vanilla/base.tid | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index d95df90b1..8ad23e3a9 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -157,7 +157,7 @@ code { color: <>; background-color: <>; border: 1px solid <>; - white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; + white-space: pre-wrap; padding: 0 3px 2px; border-radius: 3px; font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; @@ -293,10 +293,13 @@ form.tc-form-inline { Markdown likes putting code elements inside pre elements */ pre > code { - padding: 0; + display: block; + padding: 0.5em; border: none; + white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; background-color: inherit; color: inherit; + overflow-x: auto; } /* From bcae5cc2ef20e6ca06dbd2d987c3a91a5c2c0341 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Sun, 25 Aug 2024 12:37:29 +0200 Subject: [PATCH 3/4] Fix 7142 search outline in chrome like browsers (#7317) * fix 7142 search outline in chrome like browsers * use moz-focusring only for FF, outline-initial for Chrome * moz-focusring remove outline-offset * remove box-sizing from base, because it's part of reset * remove redundant box-sizing since it is part of reset * fix distance between search input and first button to the right --- core/ui/AdvancedSearch/Standard.tid | 1 + core/ui/SideBarSegments/search.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 14 ++++++++++---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/core/ui/AdvancedSearch/Standard.tid b/core/ui/AdvancedSearch/Standard.tid index e6ed18a7a..424d7917f 100644 --- a/core/ui/AdvancedSearch/Standard.tid +++ b/core/ui/AdvancedSearch/Standard.tid @@ -39,6 +39,7 @@ caption: {{$:/language/Search/Standard/Caption}} + <$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$button class="tc-btn-invisible"> <> diff --git a/core/ui/SideBarSegments/search.tid b/core/ui/SideBarSegments/search.tid index 938cedfd1..690210307 100644 --- a/core/ui/SideBarSegments/search.tid +++ b/core/ui/SideBarSegments/search.tid @@ -55,7 +55,7 @@ tags: $:/tags/SideBarSegment <$macrocall $name="keyboard-driven-input" tiddler=<> storeTitle=<> selectionStateTitle=<> refreshTitle="$:/temp/search/refresh" type="search" tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<> - class="tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<> + class="tc-tiny-gap-right tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<> inputAcceptActions=<> inputAcceptVariantActions=<> cancelPopups="yes" configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"/> diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 8ad23e3a9..a32a9d9e5 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -71,10 +71,16 @@ $else$ {{$:/themes/tiddlywiki/vanilla/reset}} -*, input[type="search"] { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; +input[type="search"] { + outline-offset: initial; +} + +button, textarea, input, select { + outline-color: <>; +} + +:-moz-focusring { + outline: 2px solid <>; } /* From fa423e508ff5012423a1904bb17c9d61848732ee Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 26 Aug 2024 21:50:44 +0100 Subject: [PATCH 4/4] Put saver OPTIONS request: fix interpretation of success codes Fixes #8554 --- core/modules/savers/put.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/put.js b/core/modules/savers/put.js index a1ebef4bb..87fe5f710 100644 --- a/core/modules/savers/put.js +++ b/core/modules/savers/put.js @@ -55,7 +55,7 @@ var PutSaver = function(wiki) { callback: function(err,data,xhr) { // Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1 if(!err) { - self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav"); + self.serverAcceptsPuts = xhr.status >= 200 && xhr.status < 300 && !!xhr.getResponseHeader("dav"); } } });