diff --git a/Changelog.md b/Changelog.md index 8eb7f250a..73c0e0bbb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -55,6 +55,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure. * Override Bootstrap list group design [#6345](https://github.com/diaspora/diaspora/6345) * Clean up publisher code [#6336](https://github.com/diaspora/diaspora/6336) * Port conversations to new design [#6431](https://github.com/diaspora/diaspora/pull/6431) +* Hide cancel button in publisher on small screens [#6435](https://github.com/diaspora/diaspora/pull/6435) ## Bug fixes * Destroy Participation when removing interactions with a post [#5852](https://github.com/diaspora/diaspora/pull/5852) diff --git a/app/assets/stylesheets/publisher.scss b/app/assets/stylesheets/publisher.scss index c40ad4775..32e1e49e3 100644 --- a/app/assets/stylesheets/publisher.scss +++ b/app/assets/stylesheets/publisher.scss @@ -48,15 +48,6 @@ } } - $sm-xs-average: ($screen-sm + $screen-xs) / 2; - @media(max-width: $sm-xs-average) { - #hide_publisher { - display: block; - width: 100%; - margin-bottom: 5px; - } - } - @media(max-width: $screen-xs) { .btn-toolbar { width: 100%; diff --git a/app/views/publisher/_publisher.html.haml b/app/views/publisher/_publisher.html.haml index e1f2c6c5e..4bd6934f5 100644 --- a/app/views/publisher/_publisher.html.haml +++ b/app/views/publisher/_publisher.html.haml @@ -55,7 +55,7 @@ .spinner .options_and_submit.col-sm-12 .public_toggle.clearfix - .btn.btn-default.pull-left#hide_publisher{title: t("shared.publisher.discard_post")} + .btn.btn-default.pull-left.hidden-xs#hide_publisher{title: t("shared.publisher.discard_post")} %span.text= t("cancel") .btn-toolbar.pull-right