mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 02:21:49 +03:00
fix(core): tag color should use palette-line-color (#6315)
This commit is contained in:
parent
095f8c2359
commit
669ca325a1
@ -3,6 +3,7 @@ import type { PageRecordList } from '@toeverything/infra';
|
||||
import { LiveData } from '@toeverything/infra';
|
||||
|
||||
import type { WorkspaceLegacyProperties } from '../../workspace';
|
||||
import { tagColorMap } from './utils';
|
||||
|
||||
export class Tag {
|
||||
constructor(
|
||||
@ -17,7 +18,7 @@ export class Tag {
|
||||
|
||||
value$ = this.tagOption$.map(tag => tag?.value || '');
|
||||
|
||||
color$ = this.tagOption$.map(tag => tag?.color || '');
|
||||
color$ = this.tagOption$.map(tag => tagColorMap(tag?.color) || '');
|
||||
|
||||
createDate$ = this.tagOption$.map(tag => tag?.createDate || Date.now());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user