mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:48:33 +00:00
fix: team icon color issue
This commit is contained in:
@@ -30,7 +30,7 @@ const props = withDefaults(defineProps<TeamIconProps>(), {
|
||||
|
||||
const { size } = toRefs(props)
|
||||
|
||||
const { getColor } = useTheme()
|
||||
const { getColor: _getColor } = useTheme()
|
||||
|
||||
const team = computed(() => {
|
||||
return {
|
||||
@@ -80,6 +80,14 @@ const teamIcon = computed<{
|
||||
}
|
||||
})
|
||||
|
||||
const getColor = (color: string) => {
|
||||
if (color === 'transparent') {
|
||||
return _getColor('var(--nc-bg-default)')
|
||||
}
|
||||
|
||||
return _getColor(color)
|
||||
}
|
||||
|
||||
const backgroundColor = computed(() => {
|
||||
if (props.iconBgColor === 'transparent') {
|
||||
return 'transparent'
|
||||
|
||||
Reference in New Issue
Block a user