client/table view: tweak icons

This commit is contained in:
Adorian Doran 2025-07-19 16:02:11 +03:00
parent 10645790de
commit c363be57b7
2 changed files with 8 additions and 8 deletions

View File

@ -65,7 +65,7 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, parentNote:
{ {
title: t("table_view.sort-column-clear"), title: t("table_view.sort-column-clear"),
enabled: sorters.length > 0, enabled: sorters.length > 0,
uiIcon: "bx bx-empty", uiIcon: "bx bx-x-circle",
handler: () => tabulator.clearSort() handler: () => tabulator.clearSort()
}, },
{ {
@ -78,7 +78,7 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, parentNote:
}, },
{ {
title: t("table_view.show-hide-columns"), title: t("table_view.show-hide-columns"),
uiIcon: "bx bx-empty", uiIcon: "bx bx-columns",
items: buildColumnItems(tabulator) items: buildColumnItems(tabulator)
}, },
{ title: "----" }, { title: "----" },
@ -103,7 +103,7 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, parentNote:
{ title: "----" }, { title: "----" },
{ {
title: t("table_view.edit-column"), title: t("table_view.edit-column"),
uiIcon: "bx bx-edit", uiIcon: "bx bxs-edit-alt",
enabled: !!column.getField() && column.getField() !== "title", enabled: !!column.getField() && column.getField() !== "title",
handler: () => getParentComponent(e)?.triggerCommand("addNewTableColumn", { handler: () => getParentComponent(e)?.triggerCommand("addNewTableColumn", {
referenceColumn: column, referenceColumn: column,
@ -136,7 +136,7 @@ function showHeaderContextMenu(_e: Event, tabulator: Tabulator) {
items: [ items: [
{ {
title: t("table_view.show-hide-columns"), title: t("table_view.show-hide-columns"),
uiIcon: "bx bx-empty", uiIcon: "bx bx-columns",
items: buildColumnItems(tabulator) items: buildColumnItems(tabulator)
}, },
{ title: "----" }, { title: "----" },
@ -173,7 +173,7 @@ export function showRowContextMenu(_e: UIEvent, row: RowComponent, parentNote: F
{ title: "----" }, { title: "----" },
{ {
title: t("table_view.row-insert-above"), title: t("table_view.row-insert-above"),
uiIcon: "bx bx-list-plus", uiIcon: "bx bx-horizontal-left bx-rotate-90",
handler: () => getParentComponent(e)?.triggerCommand("addNewRow", { handler: () => getParentComponent(e)?.triggerCommand("addNewRow", {
parentNotePath: parentNoteId, parentNotePath: parentNoteId,
customOpts: { customOpts: {
@ -184,7 +184,7 @@ export function showRowContextMenu(_e: UIEvent, row: RowComponent, parentNote: F
}, },
{ {
title: t("table_view.row-insert-child"), title: t("table_view.row-insert-child"),
uiIcon: "bx bx-empty", uiIcon: "bx bx-subdirectory-right",
handler: async () => { handler: async () => {
const branchId = row.getData().branchId; const branchId = row.getData().branchId;
const note = await froca.getBranch(branchId)?.getNote(); const note = await froca.getBranch(branchId)?.getNote();
@ -199,7 +199,7 @@ export function showRowContextMenu(_e: UIEvent, row: RowComponent, parentNote: F
}, },
{ {
title: t("table_view.row-insert-below"), title: t("table_view.row-insert-below"),
uiIcon: "bx bx-empty", uiIcon: "bx bx-horizontal-left bx-rotate-270",
handler: () => getParentComponent(e)?.triggerCommand("addNewRow", { handler: () => getParentComponent(e)?.triggerCommand("addNewRow", {
parentNotePath: parentNoteId, parentNotePath: parentNoteId,
customOpts: { customOpts: {

View File

@ -16,7 +16,7 @@ export default function buildFooter(parentNote: FNote) {
</button> </button>
<button class="btn btn-sm" style="padding: 0px 10px 0px 10px;" data-trigger-command="addNewTableColumn"> <button class="btn btn-sm" style="padding: 0px 10px 0px 10px;" data-trigger-command="addNewTableColumn">
<span class="bx bx-columns"></span> ${t("table_view.new-column")} <span class="bx bx-carousel"></span> ${t("table_view.new-column")}
</button> </button>
`.trimStart(); `.trimStart();
} }