Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

挂件默认大小和默认居左如何调整? #21

Closed
crendy opened this issue Oct 18, 2022 · 9 comments
Closed

挂件默认大小和默认居左如何调整? #21

crendy opened this issue Oct 18, 2022 · 9 comments
Labels
question Further information is requested

Comments

@crendy
Copy link

crendy commented Oct 18, 2022

目前新建挂件默认居中,并且初始化的窗口太小了,不太方便,有地方可以调整吗?
image

如果是这样就好了:
image

@Zuoqiu-Yingyi Zuoqiu-Yingyi added the question Further information is requested label Oct 18, 2022
@Zuoqiu-Yingyi
Copy link
Owner

将如下片段塞到主题/全局样式中即可令所有挂件默认居左

.b3-typography .iframe, .protyle-wysiwyg .iframe { text-align: left; }

@crendy
Copy link
Author

crendy commented Oct 18, 2022

将如下片段塞到主题/全局样式中即可令所有挂件默认居左

.b3-typography .iframe, .protyle-wysiwyg .iframe { text-align: left; }

挂件的默认大小呢?

@Zuoqiu-Yingyi
Copy link
Owner

挂件的默认大小呢?

.b3-typography iframe, .protyle-wysiwyg iframe { width: 765px; height: 256px; }

@crendy
Copy link
Author

crendy commented Oct 18, 2022

👍🏻👍🏻👍🏻👍🏻 这个得改主题的css,如果思源笔记支持在某个地方做全局设置就好了,我给思源笔记提个建议去 😄

@Zuoqiu-Yingyi
Copy link
Owner

👍🏻👍🏻👍🏻👍🏻 这个得改主题的css,如果思源笔记支持在某个地方做全局设置就好了,我给思源笔记提个建议去 😄

已经有了: 增加公共代码 js/css 片段

@crendy
Copy link
Author

crendy commented Oct 18, 2022

👍🏻👍🏻👍🏻👍🏻 这个得改主题的css,如果思源笔记支持在某个地方做全局设置就好了,我给思源笔记提个建议去 😄

已经有了: 增加公共代码 js/css 片段

噢噢 我刚提了😅

@crendy
Copy link
Author

crendy commented Oct 18, 2022

👍🏻👍🏻👍🏻👍🏻 这个得改主题的css,如果思源笔记支持在某个地方做全局设置就好了,我给思源笔记提个建议去 😄

已经有了: 增加公共代码 js/css 片段

没看明白怎么使用😅

@Zuoqiu-Yingyi
Copy link
Owner

Zuoqiu-Yingyi commented Oct 18, 2022

没看明白怎么使用😅

就以上面的两个片段举例
在文件(没有则新建) data/snippets/conf.json 中写入如下内容

[
    {
        "name": "123",
        "type": "css",
        "enabled": true,
        "content": ".b3-typography .iframe, .protyle-wysiwyg .iframe { text-align: left; }"
    },
    {
        "name": "456",
        "type": "css",
        "enabled": true,
        "content": ".b3-typography iframe, .protyle-wysiwyg iframe { width: 765px; height: 256px; }"
    }
]

@crendy
Copy link
Author

crendy commented Oct 18, 2022

收到,谢谢!

@Zuoqiu-Yingyi Zuoqiu-Yingyi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants