Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: app hint display on hover

Smaug67398be34359786a
diff --git a/frontend/app/components/AppHint.vue b/frontend/app/components/AppHint.vue
index 848d9126..be792876 100644
--- a/frontend/app/components/AppHint.vue
+++ b/frontend/app/components/AppHint.vue
@@ -1,7 +1,7 @@
<template>
<div class="hint-wrapper" @mouseenter="show = true" @mouseleave="show = false">
<div class="icon">i</div>
- <div v-if="show" class="hint-tooltip">{{ text }}</div>
+ <div v-if="show" class="hint-content">{{ text }}</div>
</div>
</template>
@@ -11,6 +11,11 @@ const show = ref(false);
</script>
<style scoped lang="scss">
+.hint-wrapper {
+ position: relative;
+ display: inline-block;
+ margin-left: 0.25rem;
+}
.icon {
display: flex;
width: 1rem;
@@ -23,4 +28,20 @@ const show = ref(false);
align-items: center;
justify-content: center;
}
+
+.hint-content {
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ z-index: 100;
+ padding: 0.4rem 0.6rem;
+ border-radius: 0.4rem;
+ font-size: 0.65rem;
+ color: white;
+ background-color: #1f2937;
+ box-shadow: 0 2px 8px var(--shadow);
+ margin-top: 0.4rem;
+ transform: translateX(-50%);
+ white-space: nowrap;
+}
</style>