Skip to content

Commit 8ce5e86

Browse files
committed
Show 'To Top' and 'Fullscreen' buttons only on mouse-hover (close RainLoop#1501)
1 parent c7aa075 commit 8ce5e86

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

dev/App/Abstract.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ class AbstractApp extends AbstractBoot
342342

343343
if (!mobile)
344344
{
345+
$html.addClass('rl-desktop');
346+
345347
ssm.addState({
346348
id: 'mobile',
347349
query: '(max-width: 767px)',

dev/Styles/MessageView.less

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,11 @@ html.rl-no-preview-pane {
276276
z-index: 2;
277277
cursor: pointer;
278278
border-radius: 5px;
279-
opacity: 0.3;
279+
.opacity(50);
280280

281281
&:hover {
282282
.opacity(80);
283-
border-color: #000;
283+
border-color: #666;
284284
background-color: #888;
285285
color: #fff;
286286
}
@@ -637,17 +637,40 @@ html.rl-message-fullscreen {
637637
z-index: 10000 !important;
638638
border: @rlLowBorderSize solid @rlMainDarkColor !important;
639639
border-radius: @rlLowBorderRadius !important;
640+
}
641+
}
640642

641-
.buttonUnFull {
642-
display: inline-block !important;
643-
}
643+
html .messageItem {
644+
.buttonUp, .buttonUp {
645+
display: none !important;
646+
}
647+
&.scroller-shadow-top .buttonUp {
648+
display: inline-block !important;
649+
}
650+
}
644651

645-
.buttonFull {
646-
display: none !important;
652+
html.rl-desktop .messageItem {
653+
.buttonUp, .buttonFull {
654+
display: none !important;
655+
}
656+
&:hover {
657+
&.scroller-shadow-top .buttonUp, .buttonFull {
658+
display: inline-block !important;
647659
}
648660
}
649661
}
650662

651-
.nano.scroller-shadow-top .buttonUp {
652-
display: inline-block !important;
653-
}
663+
html.rl-message-fullscreen .messageItem {
664+
.buttonUnFull {
665+
display: inline-block !important;
666+
}
667+
.buttonFull {
668+
display: none !important;
669+
}
670+
.buttonUp {
671+
display: none !important;
672+
}
673+
&.scroller-shadow-top .buttonUp {
674+
display: inline-block !important;
675+
}
676+
}

0 commit comments

Comments
 (0)