mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-26 21:36:55 +00:00
Tweaks for tag manager
There were some missing table cells which rendered weirdly. Still got some wrinkles, though - eg two tag dropdowns appearing.
This commit is contained in:
parent
5f6a52886e
commit
096165217a
@ -22,14 +22,20 @@ title: $:/TagManager
|
|||||||
</$reveal>
|
</$reveal>
|
||||||
</div>
|
</div>
|
||||||
\end
|
\end
|
||||||
\define qualifyUnique(title)
|
\define qualifyTitle(title)
|
||||||
$title$$(currentTiddler)$
|
$title$$(currentTiddler)$
|
||||||
\end
|
\end
|
||||||
\define toggleButton(state)
|
\define toggleButton(state)
|
||||||
<$reveal state="$state$" type="match" text="0" default="0">
|
<$reveal state="$state$" type="match" text="closed" default="closed">
|
||||||
<$button set="$state$" setTo="1" class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/right-arrow}}</$button></$reveal>
|
<$button set="$state$" setTo="open" class="tc-btn-invisible tc-btn-dropdown">
|
||||||
<$reveal state="$state$" type="match" text="1" default="0">
|
{{$:/core/images/right-arrow}}
|
||||||
<$button set="$state$" setTo="0" class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/close-button}}</$button></$reveal>
|
</$button>
|
||||||
|
</$reveal>
|
||||||
|
<$reveal state="$state$" type="match" text="open" default="closed">
|
||||||
|
<$button set="$state$" setTo="closed" class="tc-btn-invisible tc-btn-dropdown">
|
||||||
|
{{$:/core/images/close-button}}
|
||||||
|
</$button>
|
||||||
|
</$reveal>
|
||||||
\end
|
\end
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -44,22 +50,27 @@ $title$$(currentTiddler)$
|
|||||||
<td><$edit-text field="color" tag="input" type="color"/></td>
|
<td><$edit-text field="color" tag="input" type="color"/></td>
|
||||||
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
||||||
<td>
|
<td>
|
||||||
<$reveal state=<<qualifyUnique "$:/state/tagman/">> type="match" text="0" default="0">
|
<$macrocall $name="iconEditor" title={{!!title}}/>
|
||||||
<$macrocall $name="iconEditor" title={{!!title}}/></$reveal></td>
|
</td>
|
||||||
<td><$macrocall $name="toggleButton" state=<<qualifyUnique "$:/state/tagman/">> />
|
<td>
|
||||||
|
<$macrocall $name="toggleButton" state=<<qualifyTitle "$:/state/tag-manager/">> />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td></td>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
<$reveal state=<<qualifyUnique "$:/state/tagman/">> type="match" text="1" default="">
|
<$reveal state=<<qualifyTitle "$:/state/tag-manager/">> type="match" text="open" default="">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>Color</td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr>
|
<tr><td>Color</td><td><$edit-text field="color" tag="input" type="text" size="9"/></td><td></td></tr>
|
||||||
<tr><td>Icon</td><td><$edit-text field="icon" tag="input" size="45"/></td><td><$macrocall $name="iconEditor" title={{!!title}}/></td></tr>
|
<tr><td>Icon</td><td><$edit-text field="icon" tag="input" size="45"/></td><td><$macrocall $name="iconEditor" title={{!!title}}/></td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</td></tr>
|
</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
</$list>
|
</$list>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user