1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Fix tooltip sizes for roles and fix pointer events on nav items

This commit is contained in:
Andrew Kingston 2023-07-04 11:33:06 +01:00
parent dae2c0cfba
commit 44efcee58e
2 changed files with 5 additions and 4 deletions

View file

@ -175,6 +175,7 @@
left: 0;
top: 0;
border-radius: 2px;
pointer-events: none;
}
.selected-by-label {
position: absolute;

View file

@ -12,8 +12,8 @@
$: role = $roles.find(role => role._id === roleId)
$: tooltip =
roleId === Roles.PUBLIC
? "This screen is open to the public"
: `Requires at least ${role?.name} access`
? "Open to the public"
: `Requires ${role?.name} access`
</script>
<div
@ -44,14 +44,14 @@
display: flex;
flex-direction: row;
justify-content: flex-end;
width: 130px;
width: 200px;
pointer-events: none;
}
.tooltip :global(.spectrum-Tooltip) {
background: var(--color);
color: white;
font-weight: 600;
max-width: 130px;
max-width: 200px;
}
.tooltip :global(.spectrum-Tooltip-tip) {
border-top-color: var(--color);