fixed wallnote style

This commit is contained in:
abearxiong 2025-03-02 23:32:07 +08:00
parent a600f258b0
commit 6e96247b50
4 changed files with 12 additions and 14 deletions

View File

@ -43,3 +43,8 @@ body {
list-style: decimal; list-style: decimal;
} }
} }
iframe {
border: unset;
width: 100%;
height: 100%;
}

View File

@ -1,12 +1,2 @@
export const DOCS_NODE = { // <a href="https://kevisual.xiongxiao.me/workspace/wallnote/">wallnote v1版工作区/workspace/wallnote)</a>
id: 'e15owpuh9cv3fgwx5zymtc', export const DOCS_NODE = [{"id":"e15owpuh9cv3fgwx5zymtc","position":{"x":-1613.6078090729259,"y":-726.9366215444888},"data":{"html":"<h1>Wallnote 基本使用介绍 v0.0.7</h1><p></p><p>可拖拽的随笔记功能。</p><ul class=\"tight\" data-tight=\"true\"><li><p>纯网页界面,数据存储在浏览器(不登陆情况下,只有单个页面)</p></li><li><p>这个墙随便拖动</p></li><li><p>双击空格添加一条记录并打开编辑esc关闭</p></li><li><p>富文本编辑器md语法</p></li><li><p>点击节点聚焦后delete删除</p></li><li><p>右键空白处粘贴</p><ul class=\"tight\" data-tight=\"true\"><li><p>html的内容编辑会丢失样式</p></li><li><p>图片的内容(粘贴后不能编辑)</p></li><li><p>文本内容</p></li><li><p>复制的节点信息</p></li></ul></li><li><p>边框可拖动大小</p></li></ul><h3>注意</h3><ul class=\"tight\" data-tight=\"true\"><li><p>点击节点聚焦后,如果有滚动条,节点内容才能滚动</p></li><li><p>图片复制只能是二进制文件夹的图片复制后无效。比如snipaste 贴图复制Can To Do。</p></li></ul><p></p><h2>登录后功能</h2><ul class=\"tight\" data-tight=\"true\"><li><p>保存而不是临时编辑</p></li></ul><h2>新版</h2><p></p><p>![ai-workspace](https://kevisual.xiongxiao.me/workspace/wallnote/)</p><p></p><h2>TODO</h2><ul class=\"tight\" data-tight=\"true\"><li><p>do do do</p></li><li><p>ai ++++</p></li></ul>","width":1113,"height":444},"type":"wallnote"},{"id":"kb0vbz4ffi1x6aw8clo0ho","position":{"x":-1613.4790358693674,"y":-256.0352475384902},"data":{"width":356,"height":50,"html":"<a href=\"https://kevisual.xiongxiao.me/workspace/wallnote/\">wallnote v1版工作区/workspace/wallnote)</a>"},"type":"wallnote"}]
data: {
html: '<h1>Wallnote 基本使用介绍 v0.0.6</h1><p></p><p>可拖拽的随笔记功能。</p><ul class="tight" data-tight="true"><li><p>纯网页界面,数据存储在浏览器(不登陆情况下,只有单个页面)</p></li><li><p>这个墙随便拖动</p></li><li><p>双击空格添加一条记录并打开编辑esc关闭</p></li><li><p>富文本编辑器md语法</p></li><li><p>点击节点聚焦后delete删除</p></li><li><p>右键空白处粘贴</p><ul class="tight" data-tight="true"><li><p>html的内容编辑会丢失样式</p></li><li><p>图片的内容(粘贴后不能编辑)</p></li><li><p>文本内容</p></li><li><p>复制的节点信息</p></li></ul></li><li><p>边框可拖动大小</p></li></ul><h3>注意</h3><ul class="tight" data-tight="true"><li><p>点击节点聚焦后,如果有滚动条,节点内容才能滚动</p></li><li><p>图片复制只能是二进制文件夹的图片复制后无效。比如snipaste 贴图复制Can To Do。</p></li></ul><p></p><h2>登录后功能</h2><ul class="tight" data-tight="true"><li><p>保存而不是临时编辑</p></li></ul><p></p><h2>TODO</h2><ul class="tight" data-tight="true"><li><p>do do do</p></li><li><p>ai ++++</p></li></ul>',
width: 583,
height: 448,
},
type: 'wallnote',
position: { x: -901.1464949275596, y: -672.8095405534519 },
measured: { width: 583, height: 448 },
selected: true,
};

View File

@ -107,6 +107,9 @@ export const CustomNode = (props: { id: string; data: WallData; selected: boolea
if (dataType && dataType?.startsWith('image')) { if (dataType && dataType?.startsWith('image')) {
message.error('不支持编辑图片'); message.error('不支持编辑图片');
return; return;
} else if (dataType) {
message.error('不支持编辑');
return;
} }
wallStore.checkAndOpen(true, node); wallStore.checkAndOpen(true, node);
} else { } else {

View File

@ -151,7 +151,7 @@ export const useWallStore = create<WallState>((set, get) => ({
const nodes = data?.nodes || []; const nodes = data?.nodes || [];
if (nodes.length === 0) { if (nodes.length === 0) {
set({ set({
nodes: [DOCS_NODE], // nodes: [...DOCS_NODE], //
loaded: true, loaded: true,
id: null, id: null,
data: null, data: null,