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

FIX: Unset width for sorting methods on mobile #165

Merged
merged 1 commit into from Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions assets/stylesheets/common/post-voting.scss
Expand Up @@ -22,9 +22,6 @@
}

.post-voting-answers-header {
width: calc(
var(--topic-body-width) + var(--topic-body-width-padding) * 2 + 45px
);
box-sizing: border-box;
display: flex;
flex-direction: row;
Expand Down
5 changes: 5 additions & 0 deletions assets/stylesheets/desktop/post-voting.scss
@@ -0,0 +1,5 @@
.post-voting-answers-header {
width: calc(
var(--topic-body-width) + var(--topic-body-width-padding) * 2 + 45px
);
}
1 change: 1 addition & 0 deletions assets/stylesheets/mobile/post-voting.scss
@@ -1,6 +1,7 @@
.post-voting-topic,
.post-voting-topic-sort-by-activity {
.post-voting-answers-header {
width: unset;
padding: 0;
padding-bottom: 1em;
border-top: none;
Expand Down
4 changes: 3 additions & 1 deletion plugin.rb
Expand Up @@ -7,7 +7,9 @@
# url: https://github.com/discourse/discourse-post-voting
# transpile_js: true

%i[common mobile].each { |type| register_asset "stylesheets/#{type}/post-voting.scss", type }
%i[common mobile desktop].each do |type|
register_asset "stylesheets/#{type}/post-voting.scss", type
end
register_asset "stylesheets/common/post-voting-crawler.scss"

enabled_site_setting :post_voting_enabled
Expand Down