feat: add color for table info
This commit is contained in:
parent
1fb947cf2a
commit
d925d16615
@ -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,
|
||||
|
@ -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}`}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user