mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
Show add comment button when review panel is off.
This commit is contained in:
parent
f25e144a15
commit
8a11c8c3ca
2 changed files with 30 additions and 6 deletions
|
@ -58,10 +58,21 @@ div.full-size(
|
|||
.rp-entry-callout(
|
||||
ng-class="'rp-entry-callout-' + entry.type"
|
||||
)
|
||||
.rp-entry-indicator(ng-switch="entry.type")
|
||||
i.fa.fa-pencil(ng-switch-when="insert")
|
||||
i.rp-icon-delete(ng-switch-when="delete")
|
||||
i.fa.fa-comment(ng-switch-when="comment")
|
||||
|
||||
div(ng-switch="entry.type")
|
||||
.rp-entry-indicator(ng-switch-when="insert")
|
||||
i.fa.fa-pencil
|
||||
.rp-entry-indicator(ng-switch-when="delete")
|
||||
i.rp-icon-delete
|
||||
.rp-entry-indicator(ng-switch-when="comment")
|
||||
i.fa.fa-comment
|
||||
.rp-entry-indicator(
|
||||
ng-switch-when="add-comment"
|
||||
ng-if="!commentState.adding"
|
||||
ng-click="startNewComment(); toggleReviewPanel();"
|
||||
)
|
||||
i.fa.fa-commenting
|
||||
|
||||
.rp-entry(
|
||||
ng-class="[ 'rp-entry-' + entry.type, (commentState.adding ? 'rp-entry-adding-comment' : ''), (entry.focused ? 'rp-entry-focused' : '')]"
|
||||
)
|
||||
|
|
|
@ -113,7 +113,9 @@
|
|||
}
|
||||
|
||||
.rp-entry-wrapper {
|
||||
&:hover > .rp-entry {
|
||||
&:hover > .rp-entry-insert,
|
||||
&:hover > .rp-entry-delete,
|
||||
&:hover > .rp-entry-comment {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +150,7 @@
|
|||
border-color: @rp-yellow;
|
||||
}
|
||||
|
||||
&-focus-position {
|
||||
&-add-comment {
|
||||
background-color: transparent;
|
||||
right: auto;
|
||||
border-left-width: 0;
|
||||
|
@ -429,6 +431,17 @@
|
|||
right: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&-add-comment {
|
||||
right: auto;
|
||||
width: auto;
|
||||
|
||||
&.rp-entry-adding-comment {
|
||||
right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.rp-entry-indicator {
|
||||
|
|
Loading…
Reference in a new issue