feat: add color for table info

This commit is contained in:
Huy Bui 2024-06-17 12:20:49 +07:00
parent 1fb947cf2a
commit d925d16615
2 changed files with 11 additions and 4 deletions

View File

@ -98,7 +98,7 @@ export default function NoteInfo({ data, nid }) {
<button
key={c}
style={{ backgroundColor: c }}
className="p-3 rounded-full mx-1"
className="w-10 h-10 p-3 rounded-full mx-1"
onClick={() => {
setUndoStack((prev) => [
...prev,

View File

@ -46,10 +46,17 @@ export default function TablesTab() {
{tables.map((t) => (
<div id={`scroll_table_${t.id}`} key={t.id}>
<Collapse.Panel
className="relative"
header={
<div className="overflow-hidden text-ellipsis whitespace-nowrap">
{t.name}
</div>
<>
<div className="overflow-hidden text-ellipsis whitespace-nowrap">
{t.name}
</div>
<div
className="w-1 h-full absolute top-0 left-0 bottom-0"
style={{ backgroundColor: t.color }}
/>
</>
}
itemKey={`${t.id}`}
>