From ec66e7750f658908a18622caaf5f95b53c6a47fc Mon Sep 17 00:00:00 2001 From: "zorro.zhang" Date: Wed, 30 Nov 2022 10:57:10 +0800 Subject: [PATCH] ENH: fix some color again Change-Id: I8d06c7859cdcb232b0625ef1c22e562253be4dcf (cherry picked from commit 32d143fe029e36715231156ce857fd841a4a3748) --- resources/web/homepage/css/dark.css | 4 ++-- resources/web/homepage/css/home.css | 2 ++ resources/web/homepage/js/home.js | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/web/homepage/css/dark.css b/resources/web/homepage/css/dark.css index 1b88d49a0..d27bf098d 100644 --- a/resources/web/homepage/css/dark.css +++ b/resources/web/homepage/css/dark.css @@ -1,11 +1,11 @@ body { - background-color:#2D2D31; + background-color:#242428; } * { - border-color: #6f6f6f; + border-color: #3E3E45; } diff --git a/resources/web/homepage/css/home.css b/resources/web/homepage/css/home.css index 5a9846e88..75f31ba03 100644 --- a/resources/web/homepage/css/home.css +++ b/resources/web/homepage/css/home.css @@ -219,6 +219,7 @@ body display: flex; flex-direction: column; position: relative; + height: 100%; } #MenuArea @@ -391,6 +392,7 @@ body color: #323A3D; background-color: #fff; display: none; + z-index: 1; } .CT_Item diff --git a/resources/web/homepage/js/home.js b/resources/web/homepage/js/home.js index ff1383a8c..442721416 100644 --- a/resources/web/homepage/js/home.js +++ b/resources/web/homepage/js/home.js @@ -203,6 +203,7 @@ function ShowRecentFileList( pList ) function ShowRecnetFileContextMenu() { + $("#recnet_context_menu").offset({top: 10000, left:-10000}); $('#recnet_context_menu').show(); let ContextMenuWidth=$('#recnet_context_menu').width(); @@ -214,10 +215,10 @@ function ShowRecnetFileContextMenu() let RealX=MousePosX; let RealY=MousePosY; - if( MousePosX + ContextMenuWidth >DocumentWidth ) - RealX=MousePosX-ContextMenuWidth; - if( MousePosY+ContextMenuHeight>DocumentHeight ) - RealY=MousePosY-ContextMenuHeight; + if( MousePosX + ContextMenuWidth + 24 >DocumentWidth ) + RealX=DocumentWidth-ContextMenuWidth-24; + if( MousePosY+ContextMenuHeight+24>DocumentHeight ) + RealY=DocumentHeight-ContextMenuHeight-24; $("#recnet_context_menu").offset({top: RealY, left:RealX}); }