Comments (8)
我也遇到了完全一样的问题,我用的border主题,在style setteings插件中选中图片居中显示并开启这个插件后就会发生冲突,并且原本是正常的,我记得是从0.4版本开始突然冲突的,原本我下的0.3版本没有冲突
@yooboh 感谢精准的问题描述,可以复现,原因在于其CSS冲突了。
找到border主题如下CSS代码:
/* image center align */
.img-center-align .print :is(.markdown-preview-view, .markdown-rendered) img:not([class]),
.img-center-align .markdown-preview-view img:not([class]),
.img-center-align .markdown-source-view img:not([class]) {
display: block;
margin-left: auto !important;
margin-right: auto !important;
}
去掉 :not([class])
, 修改成:
.img-center-align .print :is(.markdown-preview-view, .markdown-rendered),
.img-center-align .markdown-preview-view img,
.img-center-align .markdown-source-view img{
display: block;
margin-left: auto !important;
margin-right: auto !important;
}
from attachflow.
请检查:
- 插件是否更新到最新版本
- 你的图片居中 CSS 选择器(本插件在光标移动时添加一个类名,一般不会对别的CSS有冲突)
- 其他插件问题
from attachflow.
此外, #17 也请回复反馈下
from attachflow.
请检查:
- 插件是否更新到最新版本
- 你的图片居中 CSS 选择器(本插件在光标移动时添加一个类名,一般不会对别的CSS有冲突)
- 其他插件问题
我也遇到了完全一样的问题,我用的border主题,在style setteings插件中选中图片居中显示并开启这个插件后就会发生冲突,并且原本是正常的,我记得是从0.4版本开始突然冲突的,原本我下的0.3版本没有冲突
from attachflow.
.img-center-align .print :is(.markdown-preview-view, .markdown-rendered), .img-center-align .markdown-preview-view img, .img-center-align .markdown-source-view img{ display: block; margin-left: auto !important; margin-right: auto !important; }
改了以后就正常了,谢谢!
from attachflow.
我也遇到了完全一样的问题,我用的border主题,在style setteings插件中选中图片居中显示并开启这个插件后就会发生冲突,并且原本是正常的,我记得是从0.4版本开始突然冲突的,原本我下的0.3版本没有冲突
@yooboh 感谢精准的问题描述,可以复现,原因在于其CSS冲突了。
找到border主题如下CSS代码:
/* image center align */ .img-center-align .print :is(.markdown-preview-view, .markdown-rendered) img:not([class]), .img-center-align .markdown-preview-view img:not([class]), .img-center-align .markdown-source-view img:not([class]) { display: block; margin-left: auto !important; margin-right: auto !important; }去掉
:not([class])
, 修改成:.img-center-align .print :is(.markdown-preview-view, .markdown-rendered), .img-center-align .markdown-preview-view img, .img-center-align .markdown-source-view img{ display: block; margin-left: auto !important; margin-right: auto !important; }
收到,下次尽量把环境描述清楚。#17问题我已回复,我之前试过把其他可能影响的插件关闭了。
from attachflow.
我去Border主题那边提了个,看能从主题那边修复不,修改CSS主题一更新就覆盖了,现在网络图片的居中显示还是会有问题。
from attachflow.
Akifyss/obsidian-border#263
Border的作者给调了个CSS,加进外观的CSS片断里面,完美解决问题。
from attachflow.
Related Issues (20)
- 0.2.5 会与image toolkit 产生冲突 HOT 2
- 【FR】自定义重命名规则的预设选项
- 能把Image auto upload Plugin的图片上传,嵌入到插件右键中吗。 HOT 2
- 与image captions插件有兼容问题 HOT 2
- 【Feature】阅读模式下,拖拉图标是否应换为放大镜,并不显示边框 HOT 2
- 希望支持批量删除图片 HOT 4
- 请问是否有上线官方市场的打算? HOT 1
- 复制出现错误 HOT 7
- 多层相对路径下无法使用图片相关功能 HOT 4
- I cannot find this plugin under "Community Plugins" HOT 2
- 能否提供一个转换为markdown链接的功能
- FR:阅读模式下右键菜单加一个在新标签页打开的功能
- 希望在删除附件的功能上,支持设置排除文件夹
- 图片拖动调整大小后,无法通过手动输入尺寸更改 HOT 3
- 部分情况下的图片附件右键上下文菜单操作失效 HOT 1
- 如何设置中文界面? HOT 1
- 右击图片总是消失 HOT 5
- 点击图片放大的功能,可以增加个可设置的修饰键吗?
- 能否优化下Excalidraw的图片缩放
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attachflow.