mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Remove not allowed cursor from Contributors and BranchSelector
Adds also HoverPopover tooltips, with some hints
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
export let autofocus: boolean = false;
|
||||
export let disabled: boolean = false;
|
||||
export let notAllowed: boolean = true;
|
||||
|
||||
export let styleFontFamily: string | undefined = undefined;
|
||||
export let stylePadding: string | undefined = undefined;
|
||||
@@ -40,9 +41,11 @@
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
cursor: not-allowed;
|
||||
color: var(--color-foreground-disabled);
|
||||
}
|
||||
button:disabled.not-allowed {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.small {
|
||||
height: var(--button-tiny-height);
|
||||
@@ -214,6 +217,7 @@
|
||||
on:mouseout
|
||||
on:mouseover
|
||||
class:disabled
|
||||
class:not-allowed={notAllowed}
|
||||
class:small={size === "small"}
|
||||
class:regular={size === "regular"}
|
||||
class:large={size === "large"}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
box-shadow: var(--elevation-low);
|
||||
position: relative;
|
||||
right: 1rem;
|
||||
z-index: 1;
|
||||
z-index: 10;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -138,7 +138,6 @@
|
||||
const preElement = node.parentElement as HTMLElement;
|
||||
const copyButton = document.createElement("radicle-clipboard");
|
||||
copyButton.setAttribute("text", node.textContent || "");
|
||||
copyButton.setAttribute("small", "");
|
||||
preElement.prepend(copyButton);
|
||||
|
||||
const className = Array.from(node.classList).find(name =>
|
||||
|
||||
Reference in New Issue
Block a user