mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
040a4b3865
commit
12a947e6dc
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ const genWorkspace = (workspaceDirElement: Element) => {
|
||||||
fetchPost("/api/system/listWorkspaceDirs", {}, (response) => {
|
fetchPost("/api/system/listWorkspaceDirs", {}, (response) => {
|
||||||
let html = "";
|
let html = "";
|
||||||
response.data.forEach((item: string) => {
|
response.data.forEach((item: string) => {
|
||||||
html += `<li data-path="${item}" class="b3-list-item${window.siyuan.config.system.workspaceDir === item ? " b3-list-item--focus" : ""}">
|
html += `<li data-path="${item}" class="b3-list-item b3-list-item--narrow${window.siyuan.config.system.workspaceDir === item ? " b3-list-item--focus" : ""}">
|
||||||
<span class="b3-list-item__text">${pathPosix().basename(item)}</span>
|
<span class="b3-list-item__text">${pathPosix().basename(item)}</span>
|
||||||
<span data-type="remove" class="b3-list-item__action">
|
<span data-type="remove" class="b3-list-item__action">
|
||||||
<svg><use xlink:href="#iconTrashcan"></use></svg>
|
<svg><use xlink:href="#iconTrashcan"></use></svg>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue