diff --git a/core/modules/widgets/link.js b/core/modules/widgets/link.js index 111896219..b5cd89fd8 100755 --- a/core/modules/widgets/link.js +++ b/core/modules/widgets/link.js @@ -56,7 +56,11 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) { // Create our element var domNode = this.document.createElement("a"); // Assign classes - var classes = ["tw-tiddlylink"]; + var classes = []; + if(this.linkClasses) { + classes.push(this.linkClasses); + } + classes.push("tw-tiddlylink"); if(this.isShadow) { classes.push("tw-tiddlylink-shadow"); } @@ -182,6 +186,8 @@ LinkWidget.prototype.execute = function() { // Get the link title and aria label this.tooltip = this.getAttribute("tooltip"); this["aria-label"] = this.getAttribute("aria-label"); + // Get the link classes + this.linkClasses = this.getAttribute("class"); // Determine the link characteristics this.isMissing = !this.wiki.tiddlerExists(this.to); this.isShadow = this.wiki.isShadowTiddler(this.to); diff --git a/core/ui/ControlPanel/Plugins.tid b/core/ui/ControlPanel/Plugins.tid index cc3755620..654c34502 100644 --- a/core/ui/ControlPanel/Plugins.tid +++ b/core/ui/ControlPanel/Plugins.tid @@ -16,8 +16,8 @@ $(currentTiddler)$/icon <$set name="qualified-state" value=<>> <$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]"> <$set name="popup-state" value=<>> -
-
+<$link to={{!!title}} class="tw-plugin-info"> +
<$reveal type="nomatch" state=<> text="yes"> <$button class="btn-invisible btn-dropdown" set=<> setTo="yes"> {{$:/core/images/right-arrow}} @@ -29,14 +29,12 @@ $(currentTiddler)$/icon
-<$link to={{!!title}} class="tw-plugin-info-link"> -
-
+
<$transclude tiddler=<> subtiddler=<>> <$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
-
+
''<$view field="description"><$view field="title"/>''
@@ -47,7 +45,6 @@ $(currentTiddler)$/icon <$view field="version"/>
-
<$reveal type="match" text="yes" state=<>> <$reveal type="nomatch" text="" state="!!list"> @@ -61,7 +58,6 @@ No information provided
-
diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index bc3ee4f00..69c190736 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1239,20 +1239,20 @@ canvas.tw-edit-bitmapeditor { } .tw-plugin-info { + display: block; border: 1px solid <>; margin: 1em 0 1em 0; padding: 8px; } +.tw-plugin-info-chunk { + display: inline-block; + vertical-align: middle; +} + .tw-plugin-info img, .tw-plugin-info svg { width: 3em; height: 3em; -} - -.tw-plugin-info .tw-plugin-info-dropdown-button, -.tw-plugin-info .tw-tiddlylink { - display: inline-block; - vertical-align: middle; } /*