Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
usememos

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adjust page width, CSS Code#5044

Unanswered
touro411 asked this question inQ&A
Aug 30, 2025· 3 comments· 1 reply
Discussion options

Hello,

I want to adjust the page width on the main page. The solutions I've found online don't work.

Screenshot 2025-08-30 100605

I tried:

section.max-w-5xl { max-width: 100%; }

also

`.memo-editor-dialog .dialog-container {
width: 100%;
}

.memo-editor-dialog .dialog-container .w-[40rem] {
width: 100%;
}`

But this don't work for the main page, only for the admin page.
Screenshot 2025-08-30 114623

What is the correct CSS code for the main page? I have installed the latest version of memos.

Kind Regards

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

<div>max-w-2xl 修改为max-w-full
image

You must be logged in to vote
0 replies
Comment options

(^U^)ノ~YO 想到一个方法可以使用自定义脚本用js来修改div内的class增加个max-w-full完美解决

const callback = function(mutationsList, observer) {    const targetDiv = document.querySelector('.min-w-0.mx-auto.w-full.max-w-2xl');    if (targetDiv && !targetDiv.classList.contains('max-w-full')) {        console.log('adding class...');        targetDiv.classList.add('max-w-full');        observer.disconnect();     }};const observer = new MutationObserver(callback);const config = { childList: true, subtree: true };observer.observe(document.body, config);
image
You must be logged in to vote
1 reply
@sdisaacson
Comment options

非常感谢你!我并非很擅长开发,自己无法完成这件事。这对我来说无比有帮助。

Comment options

Add this to the Additional Style section in System Settings:

.min-w-0.mx-auto.w-full.max-w-2xl { max-width: 1200px !important; width: 100% !important; }

You can play around with the max-width values. I use an ultrawide monitor and have mine set to 1800px.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@touro411@sdisaacson@Seevil@Hoss83

[8]ページ先頭

©2009-2025 Movatter.jp