From c82761a60029f5b26464f6ee9c14272d19e5d4bf Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Wed, 2 Oct 2024 20:06:40 +0800 Subject: [PATCH] Add tc-table-wrapper class to fix overflow (#8652) * Add tc-table-wrapper class to fix overflow * Apply class in tag manager body --- core/ui/TagManager.tid | 2 + .../tiddlers/system/systemtag-template.tid | 8 +- .../tiddlers/wikitext/Utility Classes.tid | 1 + plugins/tiddlywiki/tour/settings.tid | 118 +++++++++--------- themes/tiddlywiki/vanilla/base.tid | 6 + 5 files changed, 77 insertions(+), 58 deletions(-) diff --git a/core/ui/TagManager.tid b/core/ui/TagManager.tid index e554d66cc..75daf840f 100644 --- a/core/ui/TagManager.tid +++ b/core/ui/TagManager.tid @@ -62,6 +62,7 @@ color: #bbb \end \whitespace trim +
@@ -116,3 +117,4 @@ color: #bbb
+
\ No newline at end of file diff --git a/editions/tw5.com/tiddlers/system/systemtag-template.tid b/editions/tw5.com/tiddlers/system/systemtag-template.tid index f2d3eee69..b4e2d80c3 100644 --- a/editions/tw5.com/tiddlers/system/systemtag-template.tid +++ b/editions/tw5.com/tiddlers/system/systemtag-template.tid @@ -11,6 +11,7 @@ title: $:/editions/tw5.com/systemtag-template The following tiddlers are tagged with <> +
<$list filter='[all[tiddlers+shadows]tagsort[]]'> @@ -18,4 +19,9 @@ The following tiddlers are tagged with <> -
caption
<$link/> <$transclude field="caption"><$transclude field="description"><$view field="title"/>
+ + +
+ + + diff --git a/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid b/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid index b61246960..c0cd0a111 100644 --- a/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid +++ b/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid @@ -18,3 +18,4 @@ type: text/vnd.tiddlywiki |`tc-table-no-border` |Removes the borders of a table | |`tc-first-col-min-width` |The first column of a table will take up minimal possible width. It adapts to the content | +|`tc-table-wrapper` |<<.from-version "5.3.6">> A class to be applied to a `div` element outside the table to prevent table from overflowing | diff --git a/plugins/tiddlywiki/tour/settings.tid b/plugins/tiddlywiki/tour/settings.tid index 93112f39b..720d01017 100644 --- a/plugins/tiddlywiki/tour/settings.tid +++ b/plugins/tiddlywiki/tour/settings.tid @@ -51,48 +51,50 @@ Select a tour: currentTour={{{ [get[text]] :else[] }}} currentTourTag={{{ [get[tour-tag]] }}} > - - - - - - - - - - - - - - - - - - - -
- Tour title - - <$link to=<>><$text text=<>/> -
- Tour description - -
- <$transclude $tiddler=<>> - (No description available) - -
-
- Tour logo - - -
- Tour step tag - - <$transclude $variable="tag" tag=<>/> -
+
+ + + + + + + + + + + + + + + + + + + +
+ Tour title + + <$link to=<>><$text text=<>/> +
+ Tour description + +
+ <$transclude $tiddler=<>> + (No description available) + +
+
+ Tour logo + + +
+ Tour step tag + + <$transclude $variable="tag" tag=<>/> +
+
<$list filter="[has[settings]]" variable="ignore">

Custom tour settings: @@ -129,21 +131,23 @@ Select a tour: <$reveal state=<> text="show" type="match" default="hide" animate="yes"> - - - <> - <> - <> - <> - <> - <> - <> - <> - <> - <> - <> - -
+

+ + + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + +
+
<$transclude $tiddler=<> $mode="block"/>
diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 112233016..c13b69f9b 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -2807,6 +2807,12 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta width: 100%; } +/* A wrapper to fix table overflow */ + +.tc-table-wrapper { + overflow-x: auto; +} + /* ** Chooser */