Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
fix(notes): make first two lines visible when collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanie S committed Jun 13, 2020
1 parent a10f442 commit 32a4654
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/components/_notes/note/note.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2020 s-blu
//
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
Expand Down Expand Up @@ -46,7 +46,7 @@
}

.exandable-wrap.collapsed {
max-height: 2.5em;
max-height: 2.6em;
overflow-y: hidden;
transition: ease-in-out max-height 400ms;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) 2020 s-blu
//
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.


.readonly-note-ckeditor .ck.ck-editor__editable_inline > :first-child {
margin-top: 0;
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// Copyright (c) 2020 s-blu
//
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

import { Component, OnInit, Input } from '@angular/core';
import { Component, OnInit, Input, ViewEncapsulation } from '@angular/core';
import * as DecoupledEditor from 'src/assets/ckeditor5/build/ckeditor';

@Component({
selector: 'wy-note-item-ckeditor-view',
templateUrl: './noteItemCkeditorView.component.html',
styleUrls: ['./noteItemCkeditorView.component.scss'],
encapsulation: ViewEncapsulation.None,
})
export class NoteItemCkeditorViewComponent implements OnInit {
@Input() data: string;
Expand Down

0 comments on commit 32a4654

Please sign in to comment.