From a366d6235849e0ce8430e9fcbfe1e62e645b4c75 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 31 Jan 2025 17:06:55 +0000 Subject: [PATCH] Include tiddler borders in preview Several of the core palettes have distinctive borders --- core/ui/Palettes/Preview/Tiddler.tid | 8 +++++--- themes/tiddlywiki/vanilla/base.tid | 7 ++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/core/ui/Palettes/Preview/Tiddler.tid b/core/ui/Palettes/Preview/Tiddler.tid index e03e8dbea..2798c96d7 100644 --- a/core/ui/Palettes/Preview/Tiddler.tid +++ b/core/ui/Palettes/Preview/Tiddler.tid @@ -3,6 +3,8 @@ tags: $:/tags/Preview/Story \parameters (title) \whitespace trim -<$colour.div class="tc-palette-preview-thumbnail-tiddler" styleName="background-color" styleColour="tiddler-background"> - <> - \ No newline at end of file +<$colour.div class="tc-palette-preview-thumbnail-tiddler-border" styleName="border-color" styleColour="tiddler-border"> + <$colour.div class="tc-palette-preview-thumbnail-tiddler" styleName="background-color" styleColour="tiddler-background"> + <> + + diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 51a1a0159..5c4030a7e 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -2979,8 +2979,13 @@ input.tc-palette-manager-colour-input { flex-grow: 2; } -.tc-palette-preview-thumbnail-tiddler { +.tc-palette-preview-thumbnail-tiddler-border { + border-width: 1px; + border-style: solid; margin-bottom: 0.5em; +} + +.tc-palette-preview-thumbnail-tiddler { padding: 0.5em; }