-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #601 from juestchaos/main
更新
- Loading branch information
Showing
11 changed files
with
125 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
10-Obsidian/Obsidian外观/CSS 片段/Obsidian样式-给mermaid添加横向滚动条.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
uid: 20240103230235 | ||
title: Obsidian 样式 - 给 mermaid 添加横向滚动条 | ||
tags: [Obsidian, mermaid, 样式] | ||
description: | ||
author: OS | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240103230706 | ||
--- | ||
|
||
# Obsidian 样式 - 给 mermaid 添加横向滚动条 | ||
|
||
今天在 PKMer 交流群里面,有粉丝提到了 mermaid。虽然 Obsidian 默认支持 mermaid,并且对于一定大小的 mermaid 会自动缩放。 | ||
|
||
但当你实际遇到大图,自动缩放尺寸又太小时,查看会变得不方便。于是乎就产生了这个诉求,能否给 mermaid 块增加横向滚动条,在 mermaid 图形较大时,可以横向拖动来查看。 | ||
|
||
## 效果 | ||
|
||
 | ||
|
||
## 实现 | ||
|
||
这里我用简单的 css 实现下效果,但是书写水平有限,没有针对阅读视图处理,另外只粗浅测试了下 默认、minimal、blue topaz 三个主题。 | ||
|
||
``` | ||
.cm-preview-code-block.cm-embed-block.markdown-rendered { | ||
overflow: scroll; | ||
} | ||
div.mermaid { | ||
width: 102%; | ||
overflow: scroll; | ||
} | ||
.markdown-source-view.mod-cm6 .cm-content > [contenteditable=false] { | ||
overflow:unset; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
uid: 20231213114101 | ||
title: Obsidian 插件:Obsidian Camera 给你的笔记增加照相记录功能 | ||
tags: ['编辑器', '第三方工具集成', '效率', 'obsidian插件'] | ||
description: 可以通过你对应设备谁想投,拍摄照片和视频记录,将其保存在仓库中,并创建并粘贴链接到记录。【注意此插件并非适配所有的笔记本和移动端手机】 | ||
author: OS | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240103232706 | ||
--- | ||
|
||
# Obsidian 插件:Obsidian Camera 给你的笔记增加照相记录功能 | ||
|
||
## 概述 | ||
|
||
可以通过你对应设备谁想投,拍摄照片和视频记录,将其保存在仓库中,并创建并 | ||
|
||
> [!Note] 插件名片 | ||
> - 插件名称:Obsidian Camera | ||
> - 插件作者:Aldrin Jenson | ||
> - 插件说明:可以通过你对应设备谁想投,拍摄照片和视频记录,将其保存在仓库中,并创建并粘贴链接到记录。【注意此插件并非适配所有的笔记本和移动端手机】 | ||
> - 插件分类:[' 编辑器 ', ' 第三方工具集成 ', ' 效率 ', 'obsidian 插件 '] | ||
> - 项目地址:[点我访问](https://github.com/aldrinjenson/obsidian-camera) | ||
> - 国内下载地址:[下载安装](https://pkmer.cn/products/plugin/pluginMarket/?obsidian-camera) | ||
> [!note] 注意 | ||
> 【注意此插件并非适配所有的笔记本和移动端手机】 | ||
粘贴链接到记录。【注意此插件并非适配所有的笔记本和移动端手机】 | ||
|
||
 | ||
|
||
## 特点 | ||
|
||
- 拍照和录制视频,并将它们保存在保险库中 | ||
- 如果打开了一个 Markdown 文件,自动创建并粘贴到录制的链接 | ||
|
||
## 注意事项 | ||
|
||
- 这主要是为了 Obsidian 桌面版而构建的 | ||
- 移动版本基本上可以使用,但根据移动设备制造商可能会有一些差异 | ||
|
||
## 使用方法 | ||
|
||
- 启用扩展后,打开命令面板并搜索“camera” | ||
或者 | ||
- 单击左侧功能区中的相机图标 | ||
|
||
## 演示 | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
|
||
|