mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-08 01:50:57 +00:00
Tweaked chapter list item styles
- Improves animation smoothness - Changed animation slideup/down animations to use max-height instead of height to better avoid jutter at the end. - Cleaned spacing to match page items in books listing.
This commit is contained in:
parent
4759fa1e1f
commit
b030c1398b
4 changed files with 6 additions and 7 deletions
resources/js/components
|
@ -12,14 +12,14 @@ class ChapterToggle {
|
|||
const list = this.elem.parentNode.querySelector('.inset-list');
|
||||
this.elem.classList.add('open');
|
||||
this.elem.setAttribute('aria-expanded', 'true');
|
||||
slideDown(list, 240);
|
||||
slideDown(list, 180);
|
||||
}
|
||||
|
||||
close() {
|
||||
const list = this.elem.parentNode.querySelector('.inset-list');
|
||||
this.elem.classList.remove('open');
|
||||
this.elem.setAttribute('aria-expanded', 'false');
|
||||
slideUp(list, 240);
|
||||
slideUp(list, 180);
|
||||
}
|
||||
|
||||
click(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue