From fb111d017f5f90fef4c81ded72317ea0d6ec8213 Mon Sep 17 00:00:00 2001 From: Vaibhav Date: Thu, 14 Feb 2019 22:12:26 +0530 Subject: [PATCH] drafts: Remove left border from draft-box. This removes the left border extending the stream label from the recipient bar in from the drafts in drafts modal. Those borders are important in the message feed for containing several messages, but here we're only ever going to show individual drafts, and this change avoids potential color clashes with the blue box surrounding the recipient blocks. --- frontend_tests/node_tests/templates.js | 2 -- static/styles/drafts.scss | 7 +++++-- static/templates/draft.handlebars | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend_tests/node_tests/templates.js b/frontend_tests/node_tests/templates.js index 51b7642338..efa932c9ea 100644 --- a/frontend_tests/node_tests/templates.js +++ b/frontend_tests/node_tests/templates.js @@ -646,8 +646,6 @@ run_test('draft_table_body', () => { assert.equal(row_1.find(".stream_label").css("background"), "rgb(255, 0, 0)"); assert.equal(row_1.find(".stream_topic").text().trim(), "tests"); assert(!row_1.find(".message_row").hasClass("private-message")); - assert.equal(row_1.find(".messagebox").css("box-shadow"), - "inset 2px 0px 0px 0px #FF0000, -1px 0px 0px 0px #FF0000"); assert.equal(row_1.find(".message_content").text().trim(), "Public draft"); var row_2 = $(html).find(".draft-row[data-draft-id='2']"); diff --git a/static/styles/drafts.scss b/static/styles/drafts.scss index 469f9061dc..a0abde5cc9 100644 --- a/static/styles/drafts.scss +++ b/static/styles/drafts.scss @@ -88,11 +88,14 @@ .draft-row .draft-info-box { width: 100%; - border-bottom: 1px solid hsl(0, 0%, 88%); - border-top: 1px solid hsl(0, 0%, 88%); + border: 1px solid hsl(0, 0%, 88%); margin-bottom: 10px; } +.draft-info-box .message_row { + border: 0; +} + .draft-info-box .messagebox { cursor: auto; } diff --git a/static/templates/draft.handlebars b/static/templates/draft.handlebars index 0129f113bd..8c1d6c566e 100644 --- a/static/templates/draft.handlebars +++ b/static/templates/draft.handlebars @@ -28,8 +28,7 @@ {{/if}}
-
+