sdial
关注
71319 号成员,2021-10-10 22:11:07 加入
100
个人主页 浏览
1h3m
在线时长
  • 搜索窗口左右显示,适配 2.5.2

    2022-12-02 12:21

    感谢大佬,终于解决了。这是大佬的 CSS 代码,可以直接在 设置 - 外观 -代码块 -CSS 里粘贴进去

    /*链滴id:abbj,如果兄弟们用的满意,别忘了使用我得推荐码:K9TdVww */
    /*---------ctrl+p窗口改造-------------*/
    /*放大ctrl+p窗口尺寸*/
    /*不添加[data-key]属性选择器将会同时影响alt+p窗口*/
    div[data-key] .b3-dialog__container {
    	width: 85vw !important;
    }
    div[data-key] .b3-dialog__container .fn__flex-column {
    	height:85vh !important;
    	width: 100% !important;
    }
    
    /*ctrl+p改造成左右排列*/
    /*先把容器改成左右排列并自动换行*/
    div[data-key] .b3-dialog__container .fn__flex-column {
    	flex-direction: row !important;
    	flex-wrap: wrap;
    }
    /*设置需要占满一行的项目*/
    div[data-key] .b3-dialog__container .fn__flex-column .search__header,
    div[data-key] .b3-dialog__container .fn__flex-column .b3-form__space--small {
    	width:100vw;
    	/*flex-shrink:0;*/
    }
    /*窗口宽度大于一定尺寸时候,左右排列*/
    @media screen and (min-width: 960px) { 
    	/*搜索结果列表占一半宽度,靠左排列*/
    	div[data-key] .b3-dialog__container .fn__flex-column #searchList {
    		float:left;
    		/*width:45vw;*/
    		width:calc(50%);
    		height:calc(100% - 85px) !important;
    		/*禁止搜索结果水平滚动*/
    		overflow-x: hidden !important;
    		overflow-y: auto;
    	}
    
    	/*结果预览自动占满剩余宽度,高度和结果列表等高*/
    	div[data-key] .b3-dialog__container .fn__flex-column #searchPreview {
    		/*width:45vw;*/
    		height:calc(100% - 85px) !important;
    	}
    }
    
    /*窗口宽度小于一定尺寸时候,上下排列*/
    @media screen and (max-width: 960px) { 
    	div[data-key] .b3-dialog__container .fn__flex-column #searchList {
    		float:left;
    		/*width:45vw;*/
    		width:calc(100%);
    		height:calc(50% - 85px) !important;
    		/*禁止搜索结果水平滚动*/
    		overflow-x: hidden !important;
    		overflow-y: auto;
    	}
    
    	/*结果预览自动占满剩余高度*/
    	div[data-key] .b3-dialog__container .fn__flex-column #searchPreview {
    		/*width:45vw;*/
    		height:calc(50%) !important;
    	}
    }
    
    
    /*搜索结果列表路径行分开显示, copy from notion-theme*/
    .fn__flex-column #searchList .b3-list-item[data-type='search-item'] {
        padding-top: 4px;
        padding-bottom: 25px;
    	box-shadow: 0 1px 0 0 var(--ui-background-color-editor) inset;
    }
    .fn__flex-column #searchList .b3-list-item[data-type='search-item']>.b3-list-item__meta {
        top: 20px;
        right: 8px;
        position: absolute;
        white-space: nowrap;
        overflow: hidden !important;
        text-overflow: ellipsis;
    }
    /*---------ctrl+p窗口改造 end -------------*/
    
    
    
    
  • Docker 搭建思源笔记,为什么内部监听地址是 127.0.01

    2022-11-29 15:42

    这是一个 ubuntu 服务器,就是正常的。进容器可以看到监听端口是 :: , 是不是因为 podman 不支持 IPV6 的原因?

    image.png

  • Docker 搭建思源笔记,为什么内部监听地址是 127.0.01

    2022-11-29 15:33

    请问监听地址有参数可以调么?我试了一下 --servePath 0.0.0.0:6806 不生效

  • Docker 搭建思源笔记,为什么内部监听地址是 127.0.01

    2022-11-29 15:33

    docker ps 是正常的,但是进入容器里面,发现监听的是 127.0.0.1 , 应该是 0.0.0.0 才对

    image.png

  • Docker 搭建思源笔记,为什么内部监听地址是 127.0.01

    2022-11-29 11:48
    E 2022/11/29 11:44:20 working.go:377: unzip pandoc failed: open /opt/siyuan/pandoc.zip: no such file or directory
    I 2022/11/29 11:44:20 working.go:110:
          ___                                   ___           ___           ___
         /  /\        ___           ___        /__/\         /  /\         /__/\
        /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
       /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
      /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
     /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
     \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
      \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
       \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
         /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
         \__\/                                 \__\/         \__\/         \__\/
    I 2022/11/29 11:44:20 runtime.go:43: kernel is booting:
        * ver [2.5.1]
        * arch [amd64]
        * pid [1]
        * runtime mode [prod]
        * working directory [/opt/siyuan]
        * read only [false]
        * container [std]
        * database [ver=20220501]
        * workspace directory [/siyuan/workspace/]
    I 2022/11/29 11:44:20 port.go:65: check running kernel elapsed [0ms]
    I 2022/11/29 11:44:20 serve.go:108: listen port elapsed [0ms]
    I 2022/11/29 11:44:20 serve.go:115: kernel [pid=1] is booting [http://127.0.0.1:37121]
    I 2022/11/29 11:44:20 serve.go:123: kernel reverse proxy server [6806] is booting
    I 2022/11/29 11:44:20 conf.go:617: database size [74 kB], tree/block count [0/0]
    I 2022/11/29 11:44:20 working.go:148: kernel booted
    I 2022/11/29 11:45:20 box.go:80: auto stat [trees=0, blocks=0, dataSize=20 kB, assetsSize=0 B]
    I 2022/11/29 11:47:20 updater.go:173: downloading install package [https://github.com/siyuan-note/siyuan/releases/download/v2.5.2/siyuan-2.5.2-linux.AppImage]
    
    
  • Docker 搭建思源笔记,为什么内部监听地址是 127.0.01

    2022-11-29 11:47

    但是运行不正常,端口访问不了。。。

    image.png