From d014775d13add961624db1b59a5e582b0c58b29a Mon Sep 17 00:00:00 2001 From: George Tsiolis Date: Thu, 19 Apr 2018 13:57:12 +0300 Subject: Move discussion actions to the right for small viewports --- .../javascripts/notes/components/note_header.vue | 30 +++++++++++----------- app/assets/stylesheets/pages/notes.scss | 5 ---- .../move-disussion-actions-to-the-right.yml | 5 ++++ 3 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 changelogs/unreleased/move-disussion-actions-to-the-right.yml diff --git a/app/assets/javascripts/notes/components/note_header.vue b/app/assets/javascripts/notes/components/note_header.vue index c3d1ef1fcc6..fbfd6f92c85 100644 --- a/app/assets/javascripts/notes/components/note_header.vue +++ b/app/assets/javascripts/notes/components/note_header.vue @@ -62,6 +62,21 @@ export default { diff --git a/app/assets/stylesheets/pages/notes.scss b/app/assets/stylesheets/pages/notes.scss index 6d5c6cb136f..817c956da31 100644 --- a/app/assets/stylesheets/pages/notes.scss +++ b/app/assets/stylesheets/pages/notes.scss @@ -473,11 +473,6 @@ ul.notes { margin-left: 10px; color: $gray-darkest; - @include notes-media('max', $screen-md-max) { - float: none; - margin-left: 0; - } - .btn-group > .discussion-next-btn { margin-left: -1px; } diff --git a/changelogs/unreleased/move-disussion-actions-to-the-right.yml b/changelogs/unreleased/move-disussion-actions-to-the-right.yml new file mode 100644 index 00000000000..b79c6f36585 --- /dev/null +++ b/changelogs/unreleased/move-disussion-actions-to-the-right.yml @@ -0,0 +1,5 @@ +--- +title: Move discussion actions to the right for small viewports +merge_request: 18476 +author: George Tsiolis +type: changed -- cgit v1.2.1 From c866b5e4401ec50567b3eaa3bffa11bc3831850f Mon Sep 17 00:00:00 2001 From: George Tsiolis Date: Thu, 26 Apr 2018 11:46:43 +0300 Subject: Move note actions to the right --- app/assets/stylesheets/pages/notes.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/assets/stylesheets/pages/notes.scss b/app/assets/stylesheets/pages/notes.scss index 817c956da31..42fe319b931 100644 --- a/app/assets/stylesheets/pages/notes.scss +++ b/app/assets/stylesheets/pages/notes.scss @@ -407,10 +407,6 @@ ul.notes { .note-header { display: flex; justify-content: space-between; - - @include notes-media('max', $screen-xs-max) { - flex-flow: row wrap; - } } .note-header-info { -- cgit v1.2.1 From 77a925f4a6bff04f0b40255e4dced741818149d7 Mon Sep 17 00:00:00 2001 From: George Tsiolis Date: Thu, 26 Apr 2018 12:06:31 +0300 Subject: Reorder discussion timestamp information for issues --- app/assets/javascripts/notes/components/note_edited_text.vue | 10 +++++----- app/assets/javascripts/notes/components/note_header.vue | 2 +- app/views/discussions/_discussion.html.haml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/notes/components/note_edited_text.vue b/app/assets/javascripts/notes/components/note_edited_text.vue index 4ddca918495..2dc39d1a186 100644 --- a/app/assets/javascripts/notes/components/note_edited_text.vue +++ b/app/assets/javascripts/notes/components/note_edited_text.vue @@ -32,17 +32,17 @@ export default { diff --git a/app/assets/javascripts/notes/components/note_header.vue b/app/assets/javascripts/notes/components/note_header.vue index fbfd6f92c85..7183d0b50b2 100644 --- a/app/assets/javascripts/notes/components/note_header.vue +++ b/app/assets/javascripts/notes/components/note_header.vue @@ -74,7 +74,7 @@ export default { class="fa" aria-hidden="true"> - Toggle discussion + {{ __('Toggle discussion') }} diff --git a/app/views/discussions/_discussion.html.haml b/app/views/discussions/_discussion.html.haml index e9589213f80..ebe8c327079 100644 --- a/app/views/discussions/_discussion.html.haml +++ b/app/views/discussions/_discussion.html.haml @@ -13,7 +13,7 @@ = icon("chevron-up") - else = icon("chevron-down") - Toggle discussion + = _('Toggle discussion') = link_to_member(@project, discussion.author, avatar: false) .inline.discussion-headline-light -- cgit v1.2.1