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 class name conflicts with new card global class

Smaug67397885e0416aee
diff --git a/frontend/app/components/NodeRecentCard.vue b/frontend/app/components/NodeRecentCard.vue
index 5a15f3a4..ebe98cf9 100644
--- a/frontend/app/components/NodeRecentCard.vue
+++ b/frontend/app/components/NodeRecentCard.vue
@@ -1,5 +1,5 @@
<template>
- <div class="card">
+ <div class="n-card">
<div class="header">
<Icon :name="icon" display="xl" :class="`node-icon ${getAppColor(node.color || category?.color as number, true)}`" />
<span class="time">{{ relativeTime(node.updated_timestamp) }}</span>
@@ -33,7 +33,7 @@ const icon = resolveIcon(props.node);
</script>
<style scoped lang="scss">
-.card {
+.n-card {
display: flex;
height: 100%;
padding: 1rem;
diff --git a/frontend/app/components/NodeWorkspaceCard.vue b/frontend/app/components/NodeWorkspaceCard.vue
index 5309cb1b..a51f9807 100644
--- a/frontend/app/components/NodeWorkspaceCard.vue
+++ b/frontend/app/components/NodeWorkspaceCard.vue
@@ -1,5 +1,5 @@
<template>
- <div class="card" :class="getAppColor(workspace.color as number, true)">
+ <div class="wp-card" :class="getAppColor(workspace.color as number, true)">
<div class="header">
<span class="title">
<Icon :name="workspace.icon || 'workspace'" class="icon" />
@@ -40,7 +40,7 @@ const getWorkspaceDocCount = (workspaceId: string) => {
</script>
<style scoped lang="scss">
-.card {
+.wp-card {
display: flex;
height: 100%;
padding: 1.25rem;