Skip to content

Commit

Permalink
Unset width for sorting methods on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
nattsw committed Sep 7, 2023
1 parent 596733a commit da47b5d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
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

0 comments on commit da47b5d

Please sign in to comment.