This commit is contained in:
@@ -5,11 +5,13 @@ import { useI18n } from 'vue-i18n';
|
||||
import { useCampaignService } from '~/services/Campaign.js';
|
||||
import { AnchorMap, AnchoredMap, ClearAnchoredMap, SetActivePane } from '~/services/Content.js';
|
||||
import { emitter } from '~/services/Emitter';
|
||||
import { BuildColorMenu } from '~/services/EntryColors';
|
||||
import { BuildItemRows } from '~/services/ItemFolders';
|
||||
import Server from '~/services/Server';
|
||||
import { ClearWindow, CreateWindow, GetFirstWindowId } from '~/services/Windows';
|
||||
import { HideContextMenu, ShowContextMenu } from '~/services/ContextMenu';
|
||||
import { ACTOR_DRAG_TYPE } from '~/services/MapTokens';
|
||||
import EntryFolderRow from './EntryFolderRow.vue';
|
||||
import NestedNoteList from './NestedNoteList.vue';
|
||||
|
||||
const { Campaign } = useCampaignService();
|
||||
@@ -18,12 +20,13 @@ const notes = ref([]);
|
||||
const folders = ref([]);
|
||||
const actors = ref([]);
|
||||
const items = ref([]);
|
||||
// The folders items stand in, and which of them the list has collapsed. Folders are
|
||||
// open by default: a folder synced from Foundry should show its items, not hide them.
|
||||
const itemFolders = ref([]);
|
||||
const collapsedItemFolderIds = ref([]);
|
||||
const maps = ref([]);
|
||||
const entryLists = { actor: actors, item: items, map: maps };
|
||||
// Every sidebar section files its rows into folders of its own (see models/Folder.js), so
|
||||
// each entry list keeps the tree `/actor|item|map/list` sends along. Folders are open by
|
||||
// default: a folder synced from Foundry should show what stands in it, not hide it.
|
||||
const entryFolders = { actor: ref([]), item: ref([]), map: ref([]) };
|
||||
const collapsedFolderIds = ref([]);
|
||||
const loadingNotes = ref(false);
|
||||
const loadingEntries = ref(false);
|
||||
const notesError = ref('');
|
||||
@@ -111,12 +114,27 @@ function handleNoteDeleted(noteKey) {
|
||||
notes.value = notes.value.filter(n => n.key !== noteKey);
|
||||
}
|
||||
|
||||
function handleFolderSaved() {
|
||||
fetchCampaignNotes();
|
||||
function sectionForTarget(target) {
|
||||
if (target === 'actor') return 'actors';
|
||||
if (target === 'item') return 'items';
|
||||
if (target === 'map') return 'maps';
|
||||
return null;
|
||||
}
|
||||
|
||||
function handleFolderSaved(folder) {
|
||||
// A folder only shows up once the list it belongs to reads it back: the notes refetch
|
||||
// their tree, an entry list refetches its own (silently, its rows are already there).
|
||||
const section = sectionForTarget(folder?.target ?? 'note');
|
||||
if (!section) {
|
||||
fetchCampaignNotes();
|
||||
return;
|
||||
}
|
||||
fetchCampaignEntries(section, true);
|
||||
}
|
||||
|
||||
function handleFolderDeleted(folderId) {
|
||||
expandedFolderIds.value = expandedFolderIds.value.filter((id) => id !== folderId);
|
||||
collapsedFolderIds.value = collapsedFolderIds.value.filter((id) => id !== folderId);
|
||||
}
|
||||
|
||||
function handleCampaignEntryCreated({ entityType, entry }) {
|
||||
@@ -207,9 +225,10 @@ async function fetchCampaignEntries(entityType = activeSection.value, silent = f
|
||||
|
||||
const previousById = new Map(list.value.map((entry) => [entry._id, entry]));
|
||||
list.value = response.data[entityType] ?? [];
|
||||
// Items come with the folder tree their world synced over, so the list can
|
||||
// group them the way the Foundry item directory does.
|
||||
if (kind === 'item') itemFolders.value = response.data.folders ?? [];
|
||||
// Every entry list comes with the folders its rows stand in, so the sidebar can
|
||||
// group them the way the note tree does (and the way the Foundry item directory
|
||||
// arrives for items).
|
||||
entryFolders[kind].value = response.data.folders ?? [];
|
||||
// Tell open windows about Foundry changes landing behind them.
|
||||
for (const entry of list.value) {
|
||||
const previous = previousById.get(entry._id);
|
||||
@@ -243,6 +262,14 @@ function createEntry(entityType) {
|
||||
CreateWindow('create_campaign_entry', { entityType, campaign: campaignId.value });
|
||||
}
|
||||
|
||||
// Every section files its rows into folders of its own: the window passes along which
|
||||
// list the folder belongs to, so the notes, the actors, the items and the maps each keep
|
||||
// a tree the others never show.
|
||||
function createFolder(target = 'note') {
|
||||
if (!campaignId.value) return;
|
||||
CreateWindow('new_folder', { campaign: campaignId.value, target });
|
||||
}
|
||||
|
||||
function entrySummary(actor) {
|
||||
const bits = [t(`campaigns.actor.types.${actor.type}`)];
|
||||
if (actor.species) bits.push(actor.species);
|
||||
@@ -289,6 +316,14 @@ function showEntryMenu(entry, entityType) {
|
||||
});
|
||||
}
|
||||
|
||||
// Rows of every section can be filed into a folder of their own list, like a note
|
||||
// into a folder of the note tree.
|
||||
menuItems.push({
|
||||
name: t('campaigns.folders.move-to'),
|
||||
icon: '/icons/iconoir/regular/folder.svg',
|
||||
context: moveToFolderMenu(entityType, entry)
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
name: t('campaigns.actions.delete'),
|
||||
icon: '/icons/iconoir/regular/trash.svg',
|
||||
@@ -305,6 +340,74 @@ function showEntryMenu(entry, entityType) {
|
||||
ShowContextMenu(menuItems);
|
||||
}
|
||||
|
||||
// The menu of a folder row: rename it, colour it, delete it. The notes' folders are
|
||||
// renamed and coloured the same way, through the same `/folder/*` routes.
|
||||
function folderMenuItems(folder) {
|
||||
return [
|
||||
{
|
||||
name: t('campaigns.folders.rename'), icon: '/icons/iconoir/regular/edit-pencil.svg',
|
||||
action: () => {
|
||||
HideContextMenu();
|
||||
CreateWindow('new_folder', { folderId: folder._id, campaign: campaignId.value, name: folder.name });
|
||||
}
|
||||
},
|
||||
{
|
||||
name: t('campaigns.folders.color'), icon: '/icons/iconoir/regular/palette.svg',
|
||||
context: BuildColorMenu((color) => setFolderColor(folder, color), { defaultLabel: t('campaigns.folders.default') })
|
||||
},
|
||||
{ divider: true },
|
||||
{ name: t('campaigns.folders.delete'), icon: '/icons/iconoir/regular/trash.svg', action: () => deleteEntryFolder(folder) }
|
||||
];
|
||||
}
|
||||
|
||||
async function setFolderColor(folder, color) {
|
||||
try {
|
||||
const response = await Server().post('/folder/update', { id: folder._id, color });
|
||||
if (response.data.status === 'ok') folder.color = color;
|
||||
} catch (error) {} finally {
|
||||
HideContextMenu();
|
||||
}
|
||||
}
|
||||
|
||||
async function deleteEntryFolder(folder) {
|
||||
try {
|
||||
const response = await Server().post('/folder/delete', { id: folder._id });
|
||||
if (response.data.status !== 'ok') return;
|
||||
collapsedFolderIds.value = collapsedFolderIds.value.filter((id) => id !== folder._id);
|
||||
// Whatever stood in the folder moved to the root of the list along with it.
|
||||
await fetchCampaignEntries(activeSection.value, true);
|
||||
} catch (error) {} finally {
|
||||
HideContextMenu();
|
||||
}
|
||||
}
|
||||
|
||||
// The 'move to folder' submenu of an entry: the folders of its own list and its root.
|
||||
function moveToFolderMenu(entityType, entry) {
|
||||
const menuItems = entryFolders[entityType].value.map((folder) => ({
|
||||
name: folder.name, icon: '/icons/iconoir/regular/folder.svg',
|
||||
action: () => moveEntryToFolder(entityType, entry, folder._id)
|
||||
}));
|
||||
|
||||
if (menuItems.length > 0) menuItems.push({ divider: true });
|
||||
menuItems.push({
|
||||
name: t('campaigns.folders.root'), icon: '/icons/iconoir/regular/xmark-circle.svg',
|
||||
action: () => moveEntryToFolder(entityType, entry, null)
|
||||
});
|
||||
return menuItems;
|
||||
}
|
||||
|
||||
async function moveEntryToFolder(entityType, entry, folderId) {
|
||||
try {
|
||||
const response = await Server().post(`/${entityType}/update`, { id: entry._id, folder: folderId });
|
||||
if (response.data.status !== 'ok') return;
|
||||
// The row walks over to its new folder. This is the event a Foundry sync of the
|
||||
// entry sends, so the list regroups and a window open on it sees the change.
|
||||
emitter.emit('campaign-entry-updated', { entityType, entry: response.data[entityType] });
|
||||
} catch (error) {} finally {
|
||||
HideContextMenu();
|
||||
}
|
||||
}
|
||||
|
||||
async function openCharacterSheet(actor) {
|
||||
const existingWindowId = GetFirstWindowId('character_sheet');
|
||||
if (existingWindowId !== undefined) {
|
||||
@@ -343,38 +446,41 @@ function createNote() {
|
||||
CreateWindow('new_note', { campaign: campaignId.value });
|
||||
}
|
||||
|
||||
function createFolder() {
|
||||
CreateWindow('new_folder', { campaign: campaignId.value });
|
||||
}
|
||||
|
||||
function toggleSidebar() {
|
||||
sidebarCollapsed.value = !sidebarCollapsed.value;
|
||||
}
|
||||
|
||||
const rootNotes = computed(() => notes.value.filter(n => !n._folder));
|
||||
|
||||
// The items of the campaign, each under the folder it stands in (see
|
||||
// services/ItemFolders.js). Without any folder this is the plain item list.
|
||||
const itemRows = computed(() => BuildItemRows(items.value, itemFolders.value, collapsedItemFolderIds.value));
|
||||
// The rows of each entry list: every folder followed by what stands in it, deeper and
|
||||
// deeper, the way the item list has done since its folders arrived from the linked world
|
||||
// (services/ItemFolders.js builds them from the list and the folders the API sends).
|
||||
// Without any folder this is the plain list, and `row.item` is the entry of the section
|
||||
// the row belongs to: its actor, item or map.
|
||||
const entryRows = {
|
||||
actor: computed(() => BuildItemRows(actors.value, entryFolders.actor.value, collapsedFolderIds.value)),
|
||||
item: computed(() => BuildItemRows(items.value, entryFolders.item.value, collapsedFolderIds.value)),
|
||||
map: computed(() => BuildItemRows(maps.value, entryFolders.map.value, collapsedFolderIds.value))
|
||||
};
|
||||
|
||||
// Rows one step deeper per folder level; the sidebar list's own padding is the base.
|
||||
function rowIndent(depth) {
|
||||
return { paddingLeft: `${10 + depth * 14}px` };
|
||||
}
|
||||
|
||||
function toggleItemFolder(folderId) {
|
||||
collapsedItemFolderIds.value = collapsedItemFolderIds.value.includes(folderId)
|
||||
? collapsedItemFolderIds.value.filter((id) => id !== folderId)
|
||||
: [...collapsedItemFolderIds.value, folderId];
|
||||
function toggleFolder(folderId) {
|
||||
collapsedFolderIds.value = collapsedFolderIds.value.includes(folderId)
|
||||
? collapsedFolderIds.value.filter((id) => id !== folderId)
|
||||
: [...collapsedFolderIds.value, folderId];
|
||||
}
|
||||
|
||||
watch(campaignId, (newVal) => {
|
||||
if (newVal) {
|
||||
actors.value = [];
|
||||
items.value = [];
|
||||
itemFolders.value = [];
|
||||
collapsedItemFolderIds.value = [];
|
||||
maps.value = [];
|
||||
for (const sectionFolders of Object.values(entryFolders)) sectionFolders.value = [];
|
||||
collapsedFolderIds.value = [];
|
||||
ClearAnchoredMap();
|
||||
fetchCampaignNotes();
|
||||
if (isEntrySection(activeSection.value)) fetchCampaignEntries(activeSection.value);
|
||||
@@ -383,9 +489,9 @@ watch(campaignId, (newVal) => {
|
||||
folders.value = [];
|
||||
actors.value = [];
|
||||
items.value = [];
|
||||
itemFolders.value = [];
|
||||
collapsedItemFolderIds.value = [];
|
||||
maps.value = [];
|
||||
for (const sectionFolders of Object.values(entryFolders)) sectionFolders.value = [];
|
||||
collapsedFolderIds.value = [];
|
||||
notesError.value = '';
|
||||
entriesError.value = '';
|
||||
ClearAnchoredMap();
|
||||
@@ -496,7 +602,7 @@ onBeforeUnmount(() => {
|
||||
<button class="sidebar-action" type="button" @click="createNote" :disabled="!Campaign" :title="t('campaigns.actions.new-note')" :aria-label="t('campaigns.actions.new-note')">
|
||||
<img class="sidebar-action-icon" src="/icons/iconoir/regular/plus.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
<button class="sidebar-action" type="button" @click="createFolder" :disabled="!Campaign" :title="t('campaigns.actions.new-folder')" :aria-label="t('campaigns.actions.new-folder')">
|
||||
<button class="sidebar-action" type="button" @click="createFolder()" :disabled="!Campaign" :title="t('campaigns.actions.new-folder')" :aria-label="t('campaigns.actions.new-folder')">
|
||||
<img class="sidebar-action-icon" src="/icons/iconoir/regular/folder.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
<button class="sidebar-action" type="button" @click="fetchCampaignNotes" :disabled="!Campaign || loadingNotes" :title="t('campaigns.actions.refresh')" :aria-label="t('campaigns.actions.refresh')">
|
||||
@@ -507,6 +613,9 @@ onBeforeUnmount(() => {
|
||||
<button class="sidebar-action" type="button" @click="createEntry(entryEntityType(activeSection))" :disabled="!Campaign" :title="t('campaigns.actions.create', { section: t(`campaigns.sections.${activeSection}`).toLowerCase() })" :aria-label="t('campaigns.actions.create', { section: t(`campaigns.sections.${activeSection}`).toLowerCase() })">
|
||||
<img class="sidebar-action-icon" src="/icons/iconoir/regular/plus.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
<button class="sidebar-action" type="button" @click="createFolder(entryEntityType(activeSection))" :disabled="!Campaign" :title="t('campaigns.actions.new-folder')" :aria-label="t('campaigns.actions.new-folder')">
|
||||
<img class="sidebar-action-icon" src="/icons/iconoir/regular/folder.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
<button class="sidebar-action" type="button" @click="fetchCampaignEntries(activeSection)" :disabled="!Campaign || loadingEntries" :title="t('campaigns.actions.refresh')" :aria-label="t('campaigns.actions.refresh')">
|
||||
<img class="sidebar-action-icon" src="/icons/iconoir/regular/refresh.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
@@ -528,36 +637,38 @@ onBeforeUnmount(() => {
|
||||
<template v-else-if="activeSection === 'actors'">
|
||||
<div v-if="loadingEntries" class="sidebar-state">{{ t('campaigns.states.loading') }}</div>
|
||||
<div v-else-if="entriesError" class="sidebar-state error">{{ entriesError }}</div>
|
||||
<div v-else-if="actors.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-actors') }}</div>
|
||||
<div v-for="actor in actors" :key="actor._id" class="entity-entry" role="button" tabindex="0" draggable="true" :title="t('campaigns.map.tokens.drag')" @click="openCharacterSheet(actor)" @keydown.enter="openCharacterSheet(actor)" @keydown.space.prevent="openCharacterSheet(actor)" @dragstart="startActorDrag($event, actor)" @contextmenu.prevent="showEntryMenu(actor, 'actor')">
|
||||
<span class="entity-entry-name">{{ actor.name }}</span>
|
||||
<span class="entity-entry-meta">{{ entrySummary(actor) }}</span>
|
||||
</div>
|
||||
<div v-else-if="actors.length === 0 && entryFolders.actor.value.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-actors') }}</div>
|
||||
<template v-for="row in entryRows.actor.value" :key="row.key">
|
||||
<EntryFolderRow
|
||||
v-if="row.kind === 'folder'"
|
||||
:folder="row.folder"
|
||||
:collapsed="collapsedFolderIds.includes(row.folder._id)"
|
||||
:indent="rowIndent(row.depth)"
|
||||
:menu="folderMenuItems(row.folder)"
|
||||
:toggle-label="t('campaigns.folders.toggle', { name: row.folder.name })"
|
||||
@toggle="toggleFolder(row.folder._id)"
|
||||
/>
|
||||
<div v-else class="entity-entry" :style="rowIndent(row.depth)" role="button" tabindex="0" draggable="true" :title="t('campaigns.map.tokens.drag')" @click="openCharacterSheet(row.item)" @keydown.enter="openCharacterSheet(row.item)" @keydown.space.prevent="openCharacterSheet(row.item)" @dragstart="startActorDrag($event, row.item)" @contextmenu.prevent="showEntryMenu(row.item, 'actor')">
|
||||
<span class="entity-entry-name">{{ row.item.name }}</span>
|
||||
<span class="entity-entry-meta">{{ entrySummary(row.item) }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-else-if="activeSection === 'items'">
|
||||
<div v-if="loadingEntries" class="sidebar-state">{{ t('campaigns.states.loading') }}</div>
|
||||
<div v-else-if="entriesError" class="sidebar-state error">{{ entriesError }}</div>
|
||||
<div v-else-if="items.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-items') }}</div>
|
||||
<template v-for="row in itemRows" :key="row.key">
|
||||
<button
|
||||
<div v-else-if="items.length === 0 && entryFolders.item.value.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-items') }}</div>
|
||||
<template v-for="row in entryRows.item.value" :key="row.key">
|
||||
<EntryFolderRow
|
||||
v-if="row.kind === 'folder'"
|
||||
class="item-folder-entry"
|
||||
type="button"
|
||||
:style="rowIndent(row.depth)"
|
||||
:aria-expanded="(!collapsedItemFolderIds.includes(row.folder._id)).toString()"
|
||||
:aria-label="t('campaigns.item.folder-toggle', { name: row.folder.name })"
|
||||
@click="toggleItemFolder(row.folder._id)"
|
||||
>
|
||||
<img
|
||||
class="item-folder-arrow"
|
||||
:src="collapsedItemFolderIds.includes(row.folder._id) ? '/icons/iconoir/regular/nav-arrow-right.svg' : '/icons/iconoir/regular/nav-arrow-down.svg'"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
>
|
||||
<img class="item-folder-icon" src="/icons/iconoir/regular/folder.svg" alt="" aria-hidden="true">
|
||||
<span class="item-folder-name">{{ row.folder.name }}</span>
|
||||
</button>
|
||||
:folder="row.folder"
|
||||
:collapsed="collapsedFolderIds.includes(row.folder._id)"
|
||||
:indent="rowIndent(row.depth)"
|
||||
:menu="folderMenuItems(row.folder)"
|
||||
:toggle-label="t('campaigns.folders.toggle', { name: row.folder.name })"
|
||||
@toggle="toggleFolder(row.folder._id)"
|
||||
/>
|
||||
<div v-else class="entity-entry" :style="rowIndent(row.depth)" role="button" tabindex="0" @click="openItemSheet(row.item)" @keydown.enter="openItemSheet(row.item)" @keydown.space.prevent="openItemSheet(row.item)" @contextmenu.prevent="showEntryMenu(row.item, 'item')">
|
||||
<span class="entity-entry-name-row">
|
||||
<span class="entity-entry-name">{{ row.item.name }}</span>
|
||||
@@ -571,15 +682,26 @@ onBeforeUnmount(() => {
|
||||
<template v-else>
|
||||
<div v-if="loadingEntries" class="sidebar-state">{{ t('campaigns.states.loading') }}</div>
|
||||
<div v-else-if="entriesError" class="sidebar-state error">{{ entriesError }}</div>
|
||||
<div v-else-if="maps.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-maps') }}</div>
|
||||
<div v-for="map in maps" :key="map._id" class="entity-entry" :class="{ anchored: isAnchoredMap(map) }" role="button" tabindex="0" @click="openMapViewer(map)" @keydown.enter="openMapViewer(map)" @keydown.space.prevent="openMapViewer(map)" @contextmenu.prevent="showEntryMenu(map, 'map')">
|
||||
<span class="entity-entry-name-row">
|
||||
<span class="entity-entry-name">{{ map.name }}</span>
|
||||
<span v-if="isAnchoredMap(map)" class="entity-entry-sync">{{ t('campaigns.map.anchored') }}</span>
|
||||
</span>
|
||||
<span class="entity-entry-meta">{{ mapSummary(map) }}</span>
|
||||
<span v-if="!map.image" class="entity-entry-description">{{ t('campaigns.map.no-image') }}</span>
|
||||
</div>
|
||||
<div v-else-if="maps.length === 0 && entryFolders.map.value.length === 0" class="sidebar-state">{{ t('campaigns.states.empty-maps') }}</div>
|
||||
<template v-for="row in entryRows.map.value" :key="row.key">
|
||||
<EntryFolderRow
|
||||
v-if="row.kind === 'folder'"
|
||||
:folder="row.folder"
|
||||
:collapsed="collapsedFolderIds.includes(row.folder._id)"
|
||||
:indent="rowIndent(row.depth)"
|
||||
:menu="folderMenuItems(row.folder)"
|
||||
:toggle-label="t('campaigns.folders.toggle', { name: row.folder.name })"
|
||||
@toggle="toggleFolder(row.folder._id)"
|
||||
/>
|
||||
<div v-else class="entity-entry" :style="rowIndent(row.depth)" :class="{ anchored: isAnchoredMap(row.item) }" role="button" tabindex="0" @click="openMapViewer(row.item)" @keydown.enter="openMapViewer(row.item)" @keydown.space.prevent="openMapViewer(row.item)" @contextmenu.prevent="showEntryMenu(row.item, 'map')">
|
||||
<span class="entity-entry-name-row">
|
||||
<span class="entity-entry-name">{{ row.item.name }}</span>
|
||||
<span v-if="isAnchoredMap(row.item)" class="entity-entry-sync">{{ t('campaigns.map.anchored') }}</span>
|
||||
</span>
|
||||
<span class="entity-entry-meta">{{ mapSummary(row.item) }}</span>
|
||||
<span v-if="!row.item.image" class="entity-entry-description">{{ t('campaigns.map.no-image') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</div>
|
||||
</aside>
|
||||
@@ -731,18 +853,6 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
.entity-entry:hover { border-color: var(--color-border); background: var(--color-background-soft); }
|
||||
.entity-entry:focus-visible { outline: 1px solid var(--color-link); }
|
||||
/* Item folders, synced from the linked world's item directory: the same row box as
|
||||
an entry, since they share the sidebar list and its width rules. */
|
||||
.item-folder-entry {
|
||||
width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 8px 10px; border: 1px solid transparent;
|
||||
border-radius: 8px; background: transparent; color: var(--color-text); text-align: left; display: flex;
|
||||
align-items: center; gap: 6px; cursor: pointer; font: inherit;
|
||||
}
|
||||
.item-folder-entry:hover { background: var(--color-background-soft); }
|
||||
.item-folder-entry:focus-visible { outline: 1px solid var(--color-link); }
|
||||
.item-folder-arrow { width: 12px; height: 12px; flex: 0 0 12px; filter: invert(var(--color-icon-invert)); opacity: 0.6; }
|
||||
.item-folder-icon { width: 15px; height: 15px; flex: 0 0 15px; filter: invert(var(--color-icon-invert)); }
|
||||
.item-folder-name { min-width: 0; font-weight: bold; word-break: break-word; }
|
||||
/* The map currently anchored on the note container. */
|
||||
.entity-entry.anchored { border-color: var(--color-link); background: var(--color-background-soft); }
|
||||
.entity-entry-name-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
||||
|
||||
Reference in New Issue
Block a user