mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
Close #613
This commit is contained in:
parent
8f05b24694
commit
050eb08b1a
@ -113,14 +113,14 @@ export default class AttachmentActionsWidget extends BasicWidget {
|
|||||||
const $openAttachmentButton = this.$widget.find("[data-trigger-command='openAttachment']");
|
const $openAttachmentButton = this.$widget.find("[data-trigger-command='openAttachment']");
|
||||||
$openAttachmentButton
|
$openAttachmentButton
|
||||||
.addClass("disabled")
|
.addClass("disabled")
|
||||||
.append($('<span class="disabled-tooltip"> (?)</span>')
|
.append($('<span class="bx bx-info-circle disabled-tooltip" />')
|
||||||
.attr("title", t('attachments_actions.open_externally_detail_page'))
|
.attr("title", t('attachments_actions.open_externally_detail_page'))
|
||||||
);
|
);
|
||||||
if (isElectron) {
|
if (isElectron) {
|
||||||
const $openAttachmentCustomButton = this.$widget.find("[data-trigger-command='openAttachmentCustom']");
|
const $openAttachmentCustomButton = this.$widget.find("[data-trigger-command='openAttachmentCustom']");
|
||||||
$openAttachmentCustomButton
|
$openAttachmentCustomButton
|
||||||
.addClass("disabled")
|
.addClass("disabled")
|
||||||
.append($('<span class="disabled-tooltip"> (?)</span>')
|
.append($('<span class="bx bx-info-circle disabled-tooltip" />')
|
||||||
.attr("title", t('attachments_actions.open_externally_detail_page'))
|
.attr("title", t('attachments_actions.open_externally_detail_page'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ export default class AttachmentActionsWidget extends BasicWidget {
|
|||||||
const $openAttachmentCustomButton = this.$widget.find("[data-trigger-command='openAttachmentCustom']");
|
const $openAttachmentCustomButton = this.$widget.find("[data-trigger-command='openAttachmentCustom']");
|
||||||
$openAttachmentCustomButton
|
$openAttachmentCustomButton
|
||||||
.addClass("disabled")
|
.addClass("disabled")
|
||||||
.append($('<span class="disabled-tooltip"> (?)</span>')
|
.append($('<span class="bx bx-info-circle disabled-tooltip" />')
|
||||||
.attr("title", t('attachments_actions.open_custom_client_only'))
|
.attr("title", t('attachments_actions.open_custom_client_only'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -278,8 +278,15 @@ div.ui-tooltip {
|
|||||||
|
|
||||||
.dropdown-menu .disabled .disabled-tooltip {
|
.dropdown-menu .disabled .disabled-tooltip {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
color: var(--menu-text-color);
|
margin-left: 8px;
|
||||||
|
font-size: .5em;
|
||||||
|
color: var(--disabled-tooltip-icon-color);
|
||||||
cursor: help;
|
cursor: help;
|
||||||
|
opacity: .75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu .disabled .disabled-tooltip:hover {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu a:hover:not(.disabled), .dropdown-item:hover:not(.disabled) {
|
.dropdown-menu a:hover:not(.disabled), .dropdown-item:hover:not(.disabled) {
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
--dropdown-border-color: #555;
|
--dropdown-border-color: #555;
|
||||||
--dropdown-shadow-opacity: .4;
|
--dropdown-shadow-opacity: .4;
|
||||||
--dropdown-item-icon-destructive-color: #de6e5b;
|
--dropdown-item-icon-destructive-color: #de6e5b;
|
||||||
|
--disabled-tooltip-icon-color: #7fd2ef;
|
||||||
|
|
||||||
|
|
||||||
--accented-background-color: #555;
|
--accented-background-color: #555;
|
||||||
--more-accented-background-color: #777;
|
--more-accented-background-color: #777;
|
||||||
|
@ -23,6 +23,7 @@ html {
|
|||||||
--dropdown-border-color: #ccc;
|
--dropdown-border-color: #ccc;
|
||||||
--dropdown-shadow-opacity: .2;
|
--dropdown-shadow-opacity: .2;
|
||||||
--dropdown-item-icon-destructive-color: #ec5138;
|
--dropdown-item-icon-destructive-color: #ec5138;
|
||||||
|
--disabled-tooltip-icon-color: #004382;
|
||||||
|
|
||||||
--accented-background-color: #f5f5f5;
|
--accented-background-color: #f5f5f5;
|
||||||
--more-accented-background-color: #ddd;
|
--more-accented-background-color: #ddd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user