Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #344 from flowerField/master
Browse files Browse the repository at this point in the history
Sheetrightclickconfig optimization
  • Loading branch information
flowerField committed Dec 12, 2020
2 parents a71511e + 07f1a2e commit 8dbe3e0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/controllers/constant.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/controllers/sheetBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function showsheetconfigmenu() {

// 如果全部按钮设置了隐藏,则不显示
const config = luckysheetConfigsetting.sheetRightClickConfig;
if(!config.delete && !config.copy && !config.rename && !config.color && !config.hide && !config.move){
// if(!config.delete && !config.copy && !config.rename && !config.color && !config.hide && !config.move){
if(Object.values(config).every(ele=> !ele)){
return;
}

Expand Down
7 changes: 7 additions & 0 deletions src/css/luckysheet-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,13 @@ div.luckysheet-sheets-m:hover {
display: inline-block;
}

.luckysheet-sheet-container-menu-hide .luckysheet-sheets-item{
padding-right: 5px !important;
}

.luckysheet-sheet-container-menu-hide .luckysheet-sheets-item-menu{
display: none !important;
}

.luckysheet-sheet-area div.luckysheet-sheets-item {
padding: 2px 6px;
Expand Down

0 comments on commit 8dbe3e0

Please sign in to comment.