List-tagged-draggable text width

56 views
Skip to first unread message

Ed Heil

unread,
Aug 3, 2020, 3:34:45 PM8/3/20
to TiddlyWiki
I have a list-tagged-draggable where I'd like the draggable objects to be kind of big (maybe up to 2-3 sentences). However, it's looking like text will not wrap -- each paragraph/div is a single line that spills out to the right. 

E.g. to reproduce:

Create new tiddler with contents:

<<list-tagged-draggable tag:"New Tiddler" itemTemplate:"test template">>

In test template put:

{{!!text}}

Use the "New Here" pulldown to create a tiddler tagging the New Tiddler and give it a lot of text.

Result: you get a draggable tiddler that spills out to the right of New Tiddler's card.

There doesn't seem to be an issue having a multiline draggable, since it's possible to use line breaks etc. to make a draggable item multiline.  It's just that it doesn't seem to know where to wrap the text.

This is on firefox developer edition 80.0b2, tw version 5.1.21 & 5.1.22, also 5.1.23 prerelease

Is there a way to work around this?  Would it be a good candidate for a bug report, if not?

Thanks!

TW Tones

unread,
Aug 3, 2020, 8:37:18 PM8/3/20
to TiddlyWiki
Ed

I changed the template and it displayed correctly, but no drag and drop.

<$transclude tiddler={{!!title}} mode=block/>

I think you problem is just {{!!text}} results in an inline transclusion. 

Perhaps this can help keep you moving.

Regards
Tony

Eric Shulman

unread,
Aug 3, 2020, 9:13:10 PM8/3/20
to TiddlyWiki
On Monday, August 3, 2020 at 5:37:18 PM UTC-7, TW Tones wrote:
I changed the template and it displayed correctly, but no drag and drop.
<$transclude tiddler={{!!title}} mode=block/>

That template didn't work for me when I tried it on tiddlywiki.com...

But this template did:
@@white-space:pre-wrap;<$link /> {{!!text}}@@

Note: the <$link /> was needed to give it something that could be dragged.

-e

Ed Heil

unread,
Aug 4, 2020, 9:19:19 AM8/4/20
to tiddl...@googlegroups.com
That absolutely did the trick, thanks!

-- 
  Ed Heil
Reply all
Reply to author
Forward
0 new messages