|
@@ -3,6 +3,7 @@ import { useCell } from '../_shared/database-hooks/useCell';
|
|
|
import { CellIdentifier } from '../../stores/effects/database/cell/cell_bd_svc';
|
|
|
import { CellCache } from '../../stores/effects/database/cell/cell_cache';
|
|
|
import { FieldController } from '../../stores/effects/database/field/field_controller';
|
|
|
+import { getBgColor } from '$app/components/_shared/getColor';
|
|
|
|
|
|
export const BoardOptionsCell = ({
|
|
|
cellIdentifier,
|
|
@@ -16,10 +17,13 @@ export const BoardOptionsCell = ({
|
|
|
const { data } = useCell(cellIdentifier, cellCache, fieldController);
|
|
|
|
|
|
return (
|
|
|
- <>
|
|
|
+ <div className={'flex flex-wrap items-center gap-2 py-2 text-xs text-black'}>
|
|
|
{(data as SelectOptionCellDataPB | undefined)?.select_options?.map((option, index) => (
|
|
|
- <div key={index}>{option?.name || ''}</div>
|
|
|
+ <div className={`${getBgColor(option.color)} rounded px-2 py-0.5`} key={index}>
|
|
|
+ {option?.name || ''}
|
|
|
+ </div>
|
|
|
)) || ''}
|
|
|
- </>
|
|
|
+
|
|
|
+ </div>
|
|
|
);
|
|
|
};
|