feat(organization): add organization badge and enhance file display with organization details

- Introduced a new SVG icon for organization representation in the UI.
- Updated Input-field component to include organization names in file selections.
- Enhanced MentionSelector component to display organization badges for knowledge bases and files.
- Added localization strings for organization-related details in multiple languages.
- Improved styling for organization badges to enhance visual clarity.

This update improves the user experience by clearly indicating the organization associated with knowledge bases and files, fostering better organization management and visibility.
This commit is contained in:
wizardchen
2026-02-02 20:52:51 +08:00
committed by lyingbug
parent b3d743a0a9
commit 06bb652fb5
8 changed files with 458 additions and 56 deletions
@@ -0,0 +1,3 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 10C8.8 7.5 7.8 3.8 4.8 3.8C2.2 3.8 0.8 6.8 0.8 10C0.8 13.2 2.2 16.2 4.8 16.2C7.8 16.2 8.8 12.5 10 10C11.2 7.5 12.5 5.5 14.5 5.5C16.5 5.5 18 7.5 18 10C18 12.5 16.5 14.5 14.5 14.5C12.5 14.5 11.2 12.5 10 10Z" stroke="#8A8A8A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
</svg>

After

Width:  |  Height:  |  Size: 421 B

+78 -19
View File
@@ -195,7 +195,8 @@ const selectedKbs = computed(() => {
name: s.knowledge_base.name,
type: s.knowledge_base.type || 'document',
knowledge_count: s.knowledge_base.knowledge_count,
chunk_count: s.knowledge_base.chunk_count
chunk_count: s.knowledge_base.chunk_count,
org_name: s.org_name || ''
}));
const ownIds = new Set(own.map(kb => kb.id));
const sharedOnly = sharedMapped.filter((kb: any) => !ownIds.has(kb.id));
@@ -225,12 +226,23 @@ const selectedFiles = computed(() => {
isAgentConfigured: agentKbIds.includes(kb.id)
}));
// 用户选择的文件
const files = selectedFiles.value.map((f: { id: string; name: string }) => ({
...f,
type: 'file' as const,
isAgentConfigured: false
}));
// 用户选择的文件(根据 fileIdToKbId + 共享列表补全 org_name,用于角标)
const sharedKbOrgMap: Record<string, string> = {};
(orgStore.sharedKnowledgeBases || []).forEach((s: any) => {
if (s.knowledge_base?.id != null && s.org_name) {
sharedKbOrgMap[String(s.knowledge_base.id)] = s.org_name;
}
});
const files = selectedFiles.value.map((f: { id: string; name: string }) => {
const kbId = fileIdToKbId.value[f.id];
const org_name = kbId ? sharedKbOrgMap[String(kbId)] || '' : '';
return {
...f,
type: 'file' as const,
isAgentConfigured: false,
org_name
};
});
// 智能体配置的放在前面
const agentConfiguredKbs = allKbs.filter(kb => kb.isAgentConfigured);
@@ -701,16 +713,27 @@ const loadMentionItems = async (q: string, resetIndex = true, append = false) =>
// 如果智能体配置了 kb_selection_mode === 'selected',只显示指定知识库中的文件
if (hasAgentConfig.value && agentKBSelectionMode.value === 'selected') {
const configuredKbIds = agentKnowledgeBases.value;
files = files.filter((f: any) => configuredKbIds.includes(f.knowledge_base_id));
files = files.filter((f: any) => configuredKbIds.includes(f.knowledge_base_id ?? f.kb_id));
}
fileItems = files.map((f: any) => ({
id: f.id,
name: f.title || f.file_name,
type: 'file' as const,
kbName: f.knowledge_base_name || '',
kbId: f.knowledge_base_id || undefined
}));
// 共享知识库 kb_id -> org_name,用于文件项显示组织角标(key 统一转 string 避免类型不一致)
const sharedKbOrgMap: Record<string, string> = {};
(orgStore.sharedKnowledgeBases || []).forEach((s: any) => {
if (s.knowledge_base?.id != null && s.org_name) {
sharedKbOrgMap[String(s.knowledge_base.id)] = s.org_name;
}
});
fileItems = files.map((f: any) => {
const kbId = f.knowledge_base_id ?? f.kb_id;
const kbIdStr = kbId != null ? String(kbId) : '';
return {
id: f.id,
name: f.title || f.file_name,
type: 'file' as const,
kbName: f.knowledge_base_name || '',
kbId: kbId || undefined,
orgName: kbIdStr ? sharedKbOrgMap[kbIdStr] || undefined : undefined
};
});
}
mentionHasMore.value = res.has_more || false;
mentionOffset.value += fileItems.length;
@@ -1553,9 +1576,14 @@ onBeforeRouteUpdate((to, from, next) => {
{ 'agent-configured': item.isAgentConfigured }
]"
>
<span class="tag-icon">
<t-icon v-if="item.type === 'kb'" :name="item.kbType === 'faq' ? 'chat-bubble-help' : 'folder'" />
<t-icon v-else name="file" />
<span class="tag-icon-wrap" :class="{ 'has-org': item.org_name }">
<span class="tag-icon">
<t-icon v-if="item.type === 'kb'" :name="item.kbType === 'faq' ? 'chat-bubble-help' : 'folder'" />
<t-icon v-else name="file" />
</span>
<span v-if="item.org_name" class="tag-org-badge-wrap">
<img :src="getImgSrc(item.type === 'file' ? 'organization-grey.svg' : 'organization-green.svg')" class="tag-org-badge" alt="" aria-hidden="true" />
</span>
</span>
<span class="tag-name">{{ item.name }}</span>
<span class="tag-remove" @click="removeSelectedItem(item)">×</span>
@@ -1876,11 +1904,42 @@ const getImgSrc = (url: string) => {
}
}
.tag-icon-wrap {
position: relative;
display: inline-flex;
width: 18px;
height: 18px;
align-items: center;
justify-content: center;
}
.tag-icon {
font-size: 14px;
display: flex;
align-items: center;
}
/* 右下角组织角标:柔和小圆 + 绿色/灰色 icon,不刺眼 */
.tag-org-badge-wrap {
position: absolute;
right: 0;
bottom: 0;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--td-bg-color-secondarycontainer, #f0f2f5);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.tag-org-badge-wrap .tag-org-badge {
width: 5px;
height: 5px;
object-fit: contain;
}
.tag-name {
max-width: 120px;
+334 -26
View File
@@ -3,42 +3,143 @@
<!-- Knowledge Bases Group -->
<div v-if="kbItems.length > 0" class="mention-group">
<div class="mention-group-header">{{ $t('common.knowledgeBase') }}</div>
<div
v-for="(item, index) in kbItems"
<t-popup
v-for="(item, index) in kbItems"
:key="item.id"
class="mention-item"
:class="{ active: index === activeIndex }"
@click="$emit('select', item)"
@mouseenter="$emit('update:activeIndex', index)"
placement="right"
trigger="hover"
:show-arrow="true"
:overlay-inner-class-name="'mention-detail-popup-wrap'"
@visible-change="(v: boolean) => v && fetchKbDetail(item)"
>
<div class="icon" :class="item.kbType === 'faq' ? 'faq-icon' : 'kb-icon'">
<t-icon :name="item.kbType === 'faq' ? 'chat-bubble-help' : 'folder'" />
<div
class="mention-item"
:class="{ active: index === activeIndex }"
@click="$emit('select', item)"
@mouseenter="$emit('update:activeIndex', index)"
>
<div class="icon-wrap" :class="{ 'has-org': item.orgName }">
<div class="icon" :class="item.kbType === 'faq' ? 'faq-icon' : 'kb-icon'">
<t-icon :name="item.kbType === 'faq' ? 'chat-bubble-help' : 'folder'" />
</div>
<span v-if="item.orgName" class="org-badge-wrap">
<img src="@/assets/img/organization-green.svg" class="org-badge" alt="" aria-hidden="true" />
</span>
</div>
<div class="item-main">
<span class="name">{{ item.name }}</span>
<span class="count">({{ item.count || 0 }})</span>
</div>
<span v-if="item.orgName" class="org-name">{{ item.orgName }}</span>
</div>
<div class="item-main">
<span class="name">{{ item.name }}</span>
<span class="count">({{ item.count || 0 }})</span>
</div>
<span v-if="item.orgName" class="org-name">{{ item.orgName }}</span>
</div>
<template #content>
<div class="mention-detail-content">
<template v-if="detailCache[item.id]?.loading">
<div class="detail-loading"><t-loading size="small" /></div>
</template>
<template v-else-if="detailCache[item.id]?.error">
<div class="detail-error">{{ detailCache[item.id].error }}</div>
</template>
<template v-else-if="detailCache[item.id]?.data">
<div class="detail-header">
<span class="detail-name">{{ detailCache[item.id].data.name }}</span>
<span class="detail-type-badge" :class="detailCache[item.id].data.type === 'faq' ? 'faq' : 'doc'">
{{ detailCache[item.id].data.type === 'faq' ? $t('knowledgeEditor.basic.typeFAQ') : $t('knowledgeEditor.basic.typeDocument') }}
</span>
</div>
<p v-if="detailCache[item.id].data.description" class="detail-desc">{{ detailCache[item.id].data.description }}</p>
<div class="detail-meta">
<span v-if="detailCache[item.id].data.type === 'faq'">
{{ $t('mentionDetail.faqCount', { count: detailCache[item.id].data.chunk_count ?? detailCache[item.id].data.count ?? 0 }) }}
</span>
<span v-else>
{{ $t('mentionDetail.kbCount', { count: detailCache[item.id].data.knowledge_count ?? detailCache[item.id].data.count ?? 0 }) }}
</span>
<span v-if="detailCache[item.id].data.org_name || item.orgName" class="detail-org">
<img src="@/assets/img/organization-green.svg" class="detail-icon-img" alt="" aria-hidden="true" />
<span class="detail-label">{{ $t('mentionDetail.belongsToOrg') }}</span>
<span
class="detail-value clickable"
@click.stop="handleOrgClick(detailCache[item.id].data.org_name || item.orgName)"
>
{{ detailCache[item.id].data.org_name || item.orgName }}
</span>
</span>
</div>
</template>
</div>
</template>
</t-popup>
</div>
<!-- Files Group -->
<div v-if="fileItems.length > 0" class="mention-group">
<div class="mention-group-header">{{ $t('common.file') }}</div>
<div
v-for="(item, index) in fileItems"
<t-popup
v-for="(item, index) in fileItems"
:key="item.id"
class="mention-item"
:class="{ active: (kbItems.length + index) === activeIndex }"
@click="$emit('select', item)"
@mouseenter="$emit('update:activeIndex', kbItems.length + index)"
placement="right"
trigger="hover"
:show-arrow="true"
:overlay-inner-class-name="'mention-detail-popup-wrap'"
@visible-change="(v: boolean) => v && fetchFileDetail(item)"
>
<div class="icon file-icon">
<t-icon name="file" />
<div
class="mention-item"
:class="{ active: (kbItems.length + index) === activeIndex }"
@click="$emit('select', item)"
@mouseenter="$emit('update:activeIndex', kbItems.length + index)"
>
<div class="icon-wrap" :class="{ 'has-org': item.orgName }">
<div class="icon file-icon">
<t-icon name="file" />
</div>
<span v-if="item.orgName" class="org-badge-wrap">
<img src="@/assets/img/organization-grey.svg" class="org-badge" alt="" aria-hidden="true" />
</span>
</div>
<span class="name">{{ item.name }}</span>
<span v-if="item.kbName" class="kb-name">{{ item.kbName }}</span>
</div>
<span class="name">{{ item.name }}</span>
<span v-if="item.kbName" class="kb-name">{{ item.kbName }}</span>
</div>
<template #content>
<div class="mention-detail-content">
<template v-if="detailCache[item.id]?.loading">
<div class="detail-loading"><t-loading size="small" /></div>
</template>
<template v-else-if="detailCache[item.id]?.error">
<div class="detail-error">{{ detailCache[item.id].error }}</div>
</template>
<template v-else-if="detailCache[item.id]?.data">
<div class="detail-header">
<span class="detail-name">{{ detailCache[item.id].data.title || detailCache[item.id].data.file_name || item.name }}</span>
</div>
<p v-if="detailCache[item.id].data.description" class="detail-desc">{{ detailCache[item.id].data.description }}</p>
<div class="detail-meta">
<span v-if="detailCache[item.id].data.knowledge_base_name || item.kbName" class="detail-kb">
<t-icon name="folder" class="detail-icon" />
<span class="detail-label">{{ $t('mentionDetail.belongsToKb') }}</span>
<span
class="detail-value clickable"
@click.stop="handleKbClick(detailCache[item.id].data.knowledge_base_id || (item as any).kbId)"
>
{{ detailCache[item.id].data.knowledge_base_name || item.kbName }}
</span>
</span>
<span v-if="item.orgName" class="detail-org">
<img src="@/assets/img/organization-green.svg" class="detail-icon-img" alt="" aria-hidden="true" />
<span class="detail-label">{{ $t('mentionDetail.belongsToOrg') }}</span>
<span
class="detail-value clickable"
@click.stop="handleOrgClick(item.orgName)"
>
{{ item.orgName }}
</span>
</span>
</div>
</template>
</div>
</template>
</t-popup>
<!-- Loading indicator -->
<div v-if="loading" class="loading-more">
<t-loading size="small" />
@@ -53,11 +154,17 @@
<script setup lang="ts">
import { computed, watch, ref, nextTick } from 'vue';
import { useRouter } from 'vue-router';
import { getKnowledgeBaseById } from '@/api/knowledge-base';
import { getKnowledgeDetails } from '@/api/knowledge-base';
import { useOrganizationStore } from '@/stores/organization';
type DetailState = { loading: boolean; error?: string; data?: any };
const props = defineProps<{
visible: boolean;
style: any;
items: Array<{ id: string; name: string; type: 'kb' | 'file'; kbType?: 'document' | 'faq'; count?: number; kbName?: string; orgName?: string }>;
items: Array<{ id: string; name: string; type: 'kb' | 'file'; kbType?: 'document' | 'faq'; count?: number; kbName?: string; orgName?: string; kbId?: string }>;
activeIndex: number;
hasMore?: boolean;
loading?: boolean;
@@ -65,11 +172,56 @@ const props = defineProps<{
const emit = defineEmits(['select', 'update:activeIndex', 'loadMore']);
const router = useRouter();
const orgStore = useOrganizationStore();
const menuRef = ref<HTMLElement | null>(null);
const detailCache = ref<Record<string, DetailState>>({});
const kbItems = computed(() => props.items.filter(item => item.type === 'kb'));
const fileItems = computed(() => props.items.filter(item => item.type === 'file'));
async function fetchKbDetail(item: { id: string }) {
if (detailCache.value[item.id]?.data || detailCache.value[item.id]?.loading) return;
detailCache.value = { ...detailCache.value, [item.id]: { loading: true } };
try {
const res: any = await getKnowledgeBaseById(item.id);
detailCache.value = { ...detailCache.value, [item.id]: { loading: false, data: res?.data ?? res } };
} catch (e: any) {
detailCache.value = { ...detailCache.value, [item.id]: { loading: false, error: e?.message || 'Failed to load' } };
}
}
async function fetchFileDetail(item: { id: string }) {
if (detailCache.value[item.id]?.data || detailCache.value[item.id]?.loading) return;
detailCache.value = { ...detailCache.value, [item.id]: { loading: true } };
try {
const res: any = await getKnowledgeDetails(item.id);
detailCache.value = { ...detailCache.value, [item.id]: { loading: false, data: res?.data ?? res } };
} catch (e: any) {
detailCache.value = { ...detailCache.value, [item.id]: { loading: false, error: e?.message || 'Failed to load' } };
}
}
function handleKbClick(kbId: string | undefined) {
if (!kbId) return;
router.push(`/platform/knowledge-bases/${kbId}`);
}
function handleOrgClick(orgName: string) {
if (!orgName) return;
// 从共享知识库列表中找到对应的组织 ID
const sharedKb = orgStore.sharedKnowledgeBases.find(
(s: any) => s.org_name === orgName
);
if (sharedKb?.organization_id) {
// 跳转到组织列表页(目前组织详情页可能不存在,先跳转到列表页)
router.push('/platform/organizations');
} else {
// 如果找不到组织 ID,也跳转到组织列表页
router.push('/platform/organizations');
}
}
const onScroll = (e: Event) => {
const target = e.target as HTMLElement;
const { scrollTop, scrollHeight, clientHeight } = target;
@@ -173,6 +325,13 @@ const scrollToItem = (index: number) => {
color: var(--td-brand-color, #07c05f);
}
.icon-wrap {
position: relative;
width: 20px;
height: 20px;
flex-shrink: 0;
}
.icon {
display: flex;
align-items: center;
@@ -184,6 +343,28 @@ const scrollToItem = (index: number) => {
/* background: var(--td-bg-color-secondarycontainer, #f3f3f3); */
}
/* 右下角组织角标:柔和小圆 + 绿色/灰色 icon,不刺眼 */
.org-badge-wrap {
position: absolute;
right: 0;
bottom: 0;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--td-bg-color-secondarycontainer, #f0f2f5);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.org-badge-wrap .org-badge {
width: 6px;
height: 6px;
object-fit: contain;
}
/* Document KB - Greenish */
.kb-icon {
background: rgba(16, 185, 129, 0.1);
@@ -267,3 +448,130 @@ const scrollToItem = (index: number) => {
padding: 8px 12px;
}
</style>
<style>
/* 详情浮层在 Teleport 中,需全局样式 */
.mention-detail-popup-wrap.t-popup__content {
padding: 12px;
max-width: 320px;
min-width: 240px;
}
.mention-detail-content {
font-size: var(--td-font-size-body-medium, 14px);
color: var(--td-text-color-primary, #333);
line-height: 1.5;
}
.mention-detail-content .detail-loading,
.mention-detail-content .detail-error {
padding: 8px 0;
color: var(--td-text-color-secondary, #999);
font-size: var(--td-font-size-body-small, 12px);
}
.mention-detail-content .detail-error {
color: var(--td-error-color, #e34d59);
}
.mention-detail-content .detail-header {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 6px;
}
.mention-detail-content .detail-name {
font-weight: 600;
font-size: var(--td-font-size-body-large, 14px);
word-break: break-word;
}
.mention-detail-content .detail-type-badge {
flex-shrink: 0;
padding: 2px 6px;
border-radius: var(--td-radius-small, 2px);
font-size: var(--td-font-size-mark-small, 12px);
}
.mention-detail-content .detail-type-badge.doc {
background: rgba(16, 185, 129, 0.1);
color: #10b981;
}
.mention-detail-content .detail-type-badge.faq {
background: rgba(0, 82, 217, 0.1);
color: #0052d9;
}
.mention-detail-content .detail-desc {
margin: 0 0 8px;
font-size: var(--td-font-size-body-small, 12px);
color: var(--td-text-color-secondary, #666);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
}
.mention-detail-content .detail-meta {
font-size: var(--td-font-size-mark-small, 12px);
color: var(--td-text-color-placeholder, #999);
display: flex;
flex-direction: column;
gap: 6px;
align-items: flex-start;
}
.mention-detail-content .detail-org,
.mention-detail-content .detail-kb {
display: inline-flex;
align-items: center;
gap: 4px;
width: 100%;
line-height: 1.5;
}
.mention-detail-content .detail-icon {
flex-shrink: 0;
font-size: 14px;
color: var(--td-text-color-placeholder, #999);
margin-right: 2px;
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.mention-detail-content .detail-kb .detail-icon {
color: #17b03a;
font-weight: 600;
}
.mention-detail-content .detail-icon-img {
flex-shrink: 0;
width: 14px;
height: 14px;
margin-right: 2px;
color: var(--td-text-color-placeholder, #000000);
opacity: 0.7;
display: inline-block;
vertical-align: middle;
object-fit: contain;
}
.mention-detail-content .detail-label {
color: var(--td-text-color-placeholder, #999);
flex-shrink: 0;
line-height: 1.5;
display: inline-flex;
align-items: center;
}
.mention-detail-content .detail-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 160px;
line-height: 1.5;
display: inline-flex;
align-items: center;
}
.mention-detail-content .detail-value.clickable {
cursor: pointer;
text-decoration: underline;
text-decoration-color: var(--td-text-color-placeholder, #999);
transition: color 0.2s, text-decoration-color 0.2s;
}
.mention-detail-content .detail-value.clickable:hover {
color: var(--td-brand-color, #07c05f);
text-decoration-color: var(--td-brand-color, #07c05f);
}
</style>
+6
View File
@@ -868,6 +868,12 @@ export default {
knowledgeBase: 'Knowledge Base',
noResult: 'No results',
},
mentionDetail: {
faqCount: '{count} Q&A entries',
kbCount: '{count} documents',
belongsToKb: 'Knowledge base: ',
belongsToOrg: 'Space: ',
},
file: {
upload: 'Upload File',
uploadSuccess: 'File uploaded successfully',
+6
View File
@@ -752,6 +752,12 @@ export default {
knowledgeBase: "지식베이스",
noResult: "결과 없음",
},
mentionDetail: {
faqCount: "Q&A {count}개",
kbCount: "문서 {count}개",
belongsToKb: "지식베이스: ",
belongsToOrg: "공간: ",
},
file: {
upload: "파일 업로드",
uploadSuccess: "파일 업로드 성공",
+6
View File
@@ -660,6 +660,12 @@ export default {
knowledgeBase: 'База знаний',
noResult: 'Нет результатов',
},
mentionDetail: {
faqCount: '{count} вопросов и ответов',
kbCount: '{count} документов',
belongsToKb: 'База знаний: ',
belongsToOrg: 'Пространство: ',
},
file: {
upload: 'Загрузить файл',
uploadSuccess: 'Файл успешно загружен',
+6
View File
@@ -745,6 +745,12 @@ export default {
knowledgeBase: "知识库",
noResult: "无结果",
},
mentionDetail: {
faqCount: "共 {count} 条问答",
kbCount: "共 {count} 个文档",
belongsToKb: "所属知识库:",
belongsToOrg: "所属空间:",
},
agent: {
taskLabel: "任务:",
copy: "复制",
@@ -12,7 +12,7 @@
{{ $t('organization.joinOrg') }}
</t-button>
<t-button class="org-create-btn" @click="handleCreateOrganization">
<template #icon><t-icon name="usergroup-add" /></template>
<template #icon><img src="@/assets/img/organization.svg" class="org-create-icon" alt="" aria-hidden="true" /></template>
{{ $t('organization.createOrg') }}
</t-button>
</div>
@@ -72,7 +72,7 @@
<div class="card-title-block">
<span class="card-title" :title="org.name">{{ org.name }}</span>
<span class="card-relation" :class="{ 'is-owner': org.is_owner }">
<t-icon :name="org.is_owner ? 'usergroup-add' : 'usergroup'" size="12px" />
<t-icon :name="org.is_owner ? 'usergroup-add' : 'usergroup'" size="10px" />
<span>{{ org.is_owner ? $t('organization.createdByMe') : $t('organization.joinedByMe') }}</span>
</span>
</div>
@@ -1123,7 +1123,12 @@ onUnmounted(() => {
&:hover {
background: linear-gradient(135deg, #059669 0%, #047857 100%);
box-shadow: 0 4px 14px rgba(7, 192, 95, 0.35);
transform: translateY(-1px);
}
.org-create-icon {
width: 16px;
height: 16px;
filter: brightness(0) invert(1);
}
}
}
@@ -1322,30 +1327,33 @@ onUnmounted(() => {
.card-relation {
display: inline-flex;
align-items: center;
gap: 4px;
gap: 3px;
margin-top: 2px;
font-size: 12px;
font-weight: 500;
font-size: 11px;
font-weight: 400;
line-height: 1.4;
color: #64748b;
color: #94a3b8;
opacity: 0.95;
.t-icon {
flex-shrink: 0;
}
&.is-owner {
color: #7c4dff;
color: #a78bfa;
opacity: 0.9;
.t-icon {
color: #7c4dff;
color: #a78bfa;
}
}
&:not(.is-owner) {
color: #059669;
color: #34d399;
opacity: 0.9;
.t-icon {
color: #059669;
color: #34d399;
}
}
}