两步设置notion客户端悬浮目录

本文介绍如何通过安装notion-enhancer插件在notion客户端设置悬浮目录。详细步骤包括安装插件,修改app.css和panel.js文件,以实现侧边栏的显示与自动隐藏。虽然可能造成轻微卡顿,但可以通过调整插件模块来优化性能。
摘要由CSDN通过智能技术生成

notion客户端设置悬浮目录

此方法针对notion-enhancer插件修改得来,后期notion-enhancer可能会完善,但目前无法显示悬浮目录。

设置后目录可以显示在右侧侧边栏

还可以自动隐藏在右侧,当鼠标滑到最右侧时出现(通过点击<<实现)

一、安装notion-enhancer插件并打开side panel和outliner

插件地址https://github.com/notion-enhancer/desktop[这里是图片003]https://github.com/notion-enhancer/desktop

二、打开notion-enhancer插件地址

路径一般为:系统盘用户(或user)当前电脑账户名AppDataRoaming pm ode_modules otion-enhancer

1. 找到modsside-panel下的app.css,打开app.css文件,将以下代码覆盖源代码

/*
 * side panel
 * (c) 2020 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
 * (c) 2020 CloudHill
 * under the MIT license
 */

.notion-frame {
  transition: padding-right 300ms ease-in-out;
}
.enhancer-panel--container {
  flex-grow: 0;
  flex-shrink: 0;
  position: absolute;
  top: 40px;
  bottom: 0;
  right: 0;
  z-index: 99;
  height: 100vh;
  background: var(--theme--sidebar);
  color: var(--theme--text_ui);
  font-weight: 500;
  cursor: default;
  transition: box-shadow 300ms ease-in, width 300ms ease-in-out;
}

#enhancer-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  pointer-events: auto;
  background: var(--theme--sidebar);
  cursor: auto;
  max-height: 100%;
  transition: transform 300ms ease-in-out, 
    opacity 300ms ease-in-out,
    right 300ms ease-in-out;
}
#enhancer-panel[data-locked="false"] {
  max-height: calc(100vh - 120px);
  box-shadow: var(--theme--box-shadow_strong) !important;
}
#enhancer-panel[data-full-height="true"] {
  height: 100%;
}
#enhancer-panel[data-locked="false"][data-full-height="true"] {
  height: calc(100vh - 120px);
}

.enhancer-panel--header {
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 45px;
  width: 100%;
  color: var(--theme--text);
  font-size: 14px;
  padding: 2px 14px;
  overflow: hi
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值