Skip to content

Commit

Permalink
Merge pull request #139 from huyjs9/feat/table-info-color
Browse files Browse the repository at this point in the history
Add color for table info
  • Loading branch information
1ilit authored Jun 19, 2024
2 parents c90b33c + d925d16 commit c43adae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/EditorSidePanel/NotesTab/NoteInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 10 additions & 3 deletions src/components/EditorSidePanel/TablesTab/TablesTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`}
>
Expand Down

0 comments on commit c43adae

Please sign in to comment.