Users are discussing how to increase the post width in Discourse using CSS. hashOK wants to utilize the available space to make posts look better, similar to the homepage. featheredtoast suggests using .topic-body { min-width: 65%; } and adjusting as needed, while rewphus uses 75% for a media-heavy site.
However, users have reported issues with the gutter content and topic timeline when increasing the post width. jord8on adds a CSS snippet to remove the timeline when the screen size shrinks below 1260px, while Alex_P suggests a more elegant solution using @media screen and (min-width: 1260px) { .topic-body { min-width: 80%; } }.
Alex_P also shares a theme component with the CSS, which is the recommended way to avoid editing all themes manually. The component has been refactored and extended to specify the size in px instead of % and includes UI improvements. However, Paracelsus notes that the component does not work well with the Material Design Theme due to an issue with the avatar placement.
In my forum,
1.I have an ample amount of space to use it for extending the post created by user.It rather looks clumpsy now.I want to utilize the space so that the post looks good,like the homepage is screen friendly using code:
I ended up going 75% because we are a very media heavy site. That’s the great part about Discourse, you can make it whatever you want it to be as long as you make sure it doesn’t conflict with other elements on the page.
I had 75 originally but line breaks in the “reply by new topic” button looked really weird, along with the topic links in the gutter.
I think the team has plans to move the topic links below the posts and clear out the gutter in a later release, but until then just be mindful of the gutter content.
I changed my Topic Body as follows (by adding to my CSS):
.topic-body {
min-width: 80%;
}
After switching to 80%, I noticed that the Topic Timeline scrunches over the Topic Body starting at 1260px, until the time when it naturally disappears for mobile (maybe 800px?)
직접 시도해 보진 않았지만, 말씀이 맞을 것 같아요! 제 CSS는 항상 최선의 해결책은 아니거든요! 원하는 대로 페이지가 동작할 때까지 몇 가지 다른 방법을 시도해 봅니다! 요즘은 새로운 커뮤니티를 구축하고 있어요. 나중에 같은 기능이 필요하게 되면, 그 결과를 다시 알려드릴게요! 또 다른 (아마 더 나은) 해결책을 알려주셔서 감사합니다!