Make whole settings folder td clickable

This commit is contained in:
the-djmaze 2024-02-13 11:16:07 +01:00
parent 312f1c3b9b
commit 39c17b6493
2 changed files with 6 additions and 3 deletions

View file

@ -9,13 +9,16 @@
margin-top: 1em;
}
td:first-child {
cursor: pointer;
}
td + td {
white-space: nowrap;
width: 1em;
}
.folder-name {
cursor: pointer;
word-break: break-all;
white-space: pre-wrap;
}

View file

@ -1,6 +1,6 @@
<tr data-bind="css: { 'selectable': selectable, 'system': isSystemFolder }">
<td data-bind="css: 'deep-' + deep">
<span class="folder-name" data-bind="text: name, click: edit, tooltipErrorTip: errorMsg"></span>
<td data-bind="click: edit, css: 'deep-' + deep">
<span class="folder-name" data-bind="text: name, tooltipErrorTip: errorMsg"></span>
<span class="folder-system-name" data-bind="text: nameInfo, visible: isSystemFolder"></span>
<span class="folder-size" data-bind="text: friendlySize, visible: size"></span>
</td>