From b11b7b9076e7360781e59e678c7615067a9dab92 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Tue, 23 Oct 2018 12:07:13 -0500 Subject: [PATCH] Plain preview styles --- app/assets/stylesheets/app/_notes.scss | 7 ++++++- app/assets/templates/notes.html.haml | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/app/_notes.scss b/app/assets/stylesheets/app/_notes.scss index ca5b8a4ac..9666f8435 100644 --- a/app/assets/stylesheets/app/_notes.scss +++ b/app/assets/stylesheets/app/_notes.scss @@ -136,15 +136,20 @@ overflow: hidden; text-overflow: ellipsis; + $line-height: 18px; .default-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; /* number of lines to show */ - $line-height: 18px; line-height: $line-height; /* fallback */ max-height: calc(#{$line-height} * 1); /* fallback */ } + .plain-preview { + line-height: 19px; + margin-top: 1px; + } + .html-preview { margin-top: 4px; margin-bottom: 4px; diff --git a/app/assets/templates/notes.html.haml b/app/assets/templates/notes.html.haml index fdd26bf4f..2e362a246 100644 --- a/app/assets/templates/notes.html.haml +++ b/app/assets/templates/notes.html.haml @@ -40,7 +40,6 @@ %menu-row{"label" => "'Date'", "circle" => "ctrl.hideDate ? 'danger' : 'success'","faded" => "ctrl.hideDate", "action" => "ctrl.selectedMenuItem(); ctrl.toggleKey('hideDate')", "desc" => "'Hide the date displayed in each row'"} %menu-row{"label" => "'Tags'", "circle" => "ctrl.hideTags ? 'danger' : 'success'","faded" => "ctrl.hideTags", "action" => "ctrl.selectedMenuItem(); ctrl.toggleKey('hideTags')", "desc" => "'Hide the list of tags associated with each note'"} - .scrollable .infinite-scroll#notes-scrollable{"infinite-scroll" => "ctrl.paginate()", "can-load" => "true", "threshold" => "200"} .note{"ng-repeat" => "note in (ctrl.sortedNotes = (ctrl.tag.notes | filter: ctrl.filterNotes | sortBy: ctrl.sortBy | limitTo:ctrl.notesToDisplay)) track by note.uuid",