mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add directive to collapse elements via height.
This commit is contained in:
parent
a639f13cb6
commit
0841ab8278
3 changed files with 10 additions and 1 deletions
|
@ -100,7 +100,9 @@
|
||||||
)
|
)
|
||||||
i.fa.fa-angle-down
|
i.fa.fa-angle-down
|
||||||
|
|
||||||
.rp-overview-file-entries(ng-class="{ 'rp-overview-file-entries-collapsed' : reviewPanel.overview.docsCollapsedState[doc.doc.id] }")
|
.rp-overview-file-entries(
|
||||||
|
review-panel-collapse-height="reviewPanel.overview.docsCollapsedState[doc.doc.id]"
|
||||||
|
)
|
||||||
.rp-entry-wrapper(
|
.rp-entry-wrapper(
|
||||||
ng-repeat="(entry_id, entry) in reviewPanel.entries[doc.doc.id] | orderOverviewEntries"
|
ng-repeat="(entry_id, entry) in reviewPanel.entries[doc.doc.id] | orderOverviewEntries"
|
||||||
ng-if="!(entry.type === 'comment' && reviewPanel.commentThreads[entry.thread_id].resolved === true)"
|
ng-if="!(entry.type === 'comment' && reviewPanel.commentThreads[entry.thread_id].resolved === true)"
|
||||||
|
|
|
@ -8,6 +8,7 @@ define [
|
||||||
"ide/review-panel/directives/addCommentEntry"
|
"ide/review-panel/directives/addCommentEntry"
|
||||||
"ide/review-panel/directives/resolvedCommentEntry"
|
"ide/review-panel/directives/resolvedCommentEntry"
|
||||||
"ide/review-panel/directives/resolvedCommentsDropdown"
|
"ide/review-panel/directives/resolvedCommentsDropdown"
|
||||||
|
"ide/review-panel/directives/reviewPanelCollapseHeight"
|
||||||
"ide/review-panel/filters/notEmpty"
|
"ide/review-panel/filters/notEmpty"
|
||||||
"ide/review-panel/filters/orderOverviewEntries"
|
"ide/review-panel/filters/orderOverviewEntries"
|
||||||
], () ->
|
], () ->
|
|
@ -575,10 +575,16 @@
|
||||||
transform: rotateZ(0deg);
|
transform: rotateZ(0deg);
|
||||||
transition: transform 0.15s ease
|
transition: transform 0.15s ease
|
||||||
}
|
}
|
||||||
|
|
||||||
.rp-overview-file-header-collapse-on {
|
.rp-overview-file-header-collapse-on {
|
||||||
transform: rotateZ(180deg);
|
transform: rotateZ(180deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rp-overview-file-entries {
|
||||||
|
overflow: hidden;
|
||||||
|
transition: height .15s;
|
||||||
|
}
|
||||||
|
|
||||||
.rp-comment-wrapper {
|
.rp-comment-wrapper {
|
||||||
transition: .35s opacity ease-out .2s;
|
transition: .35s opacity ease-out .2s;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue