Make entire style name clickable

This commit is contained in:
Rob Garrison 2019-01-02 22:34:29 -06:00
parent bc3f2e0fcf
commit 0d87689078
2 changed files with 5 additions and 5 deletions

View File

@ -49,10 +49,10 @@
</svg>
</label>
</div>
<div class="entry-col entry-name">
<a href="#" class="entry-name"></a>
<a href="#" class="entry-col entry-name">
<span class="entry-name-text"></span>
<span class="entry-labels"></span>
</div>
</a>
<div class="entry-col entry-actions">
<a href="#" class="entry-configure-usercss tt-e" i18n-data-title="configureStyle">
<svg class="svg-icon entry-config" viewBox="0 0 24 24">

View File

@ -103,7 +103,7 @@ const UI = {
entry,
entryClassBase: entry.className,
checker: $('.entry-state-toggle', entry) || {},
nameLink: $('a.entry-name', entry),
nameLink: $('.entry-name', entry),
editLink: $('.entry-edit', entry) || {},
editHrefBase: 'edit.html?id=',
appliesTo: $('.entry-applies-to', entry),
@ -120,7 +120,7 @@ const UI = {
parts.checker.checked = style.enabled;
parts.nameLink.textContent = tWordBreak(style.name);
$('.entry-name-text', parts.nameLink).textContent = tWordBreak(style.name);
parts.nameLink.href = parts.editLink.href = parts.editHrefBase + style.id;
// clear the code to free up some memory