mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Make type input field min-width the highest character length of selectable types (#5090)
* Make type input field min-width the highest character length of selectable types * Update base.tid * Update base.tid
This commit is contained in:
parent
fa63ac5d1e
commit
530b4308e3
@ -47,6 +47,20 @@ $else$
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
\define set-type-selector-min-width()
|
||||
<$set name="typeLength" value={{{ [all[shadows+tiddlers]prefix[$:/language/Docs/Types/]get[name]length[]maxall[]] }}}>
|
||||
|
||||
.tc-type-selector-dropdown-wrapper {
|
||||
min-width: calc(<<typeLength>>ch + 4em);
|
||||
}
|
||||
|
||||
.tc-type-selector-dropdown-wrapper input.tc-edit-typeeditor {
|
||||
min-width: <<typeLength>>ch;
|
||||
}
|
||||
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
|
||||
|
||||
/*
|
||||
@ -1371,6 +1385,8 @@ html body.tc-body.tc-single-tiddler-window {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
<<set-type-selector-min-width>>
|
||||
|
||||
.tc-edit-tags {
|
||||
border: 1px solid <<colour tiddler-editor-border>>;
|
||||
padding: 4px 8px 4px 8px;
|
||||
|
Loading…
Reference in New Issue
Block a user