@leankylin-sheet/react 7.0.32 → 7.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const GridLinesControl: React.FC;
4
+ export default GridLinesControl;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./index.css";
3
+ declare const HeadersControl: React.FC;
4
+ export default HeadersControl;
@@ -80,6 +80,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
80
80
  defaultRowHeight?: number | undefined;
81
81
  defaultColWidth?: number | undefined;
82
82
  showGridLines?: number | boolean | undefined;
83
+ showHeaders?: number | boolean | undefined;
83
84
  pivotTable?: any;
84
85
  isPivotTable?: boolean | undefined;
85
86
  filter?: Record<string, any> | undefined;
@@ -88,6 +88,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
88
88
  defaultRowHeight?: number | undefined;
89
89
  defaultColWidth?: number | undefined;
90
90
  showGridLines?: number | boolean | undefined;
91
+ showHeaders?: number | boolean | undefined;
91
92
  pivotTable?: any;
92
93
  isPivotTable?: boolean | undefined;
93
94
  filter?: Record<string, any> | undefined;
package/dist/index.css CHANGED
@@ -3705,6 +3705,44 @@ label {
3705
3705
  padding: 0px 10px 0px 10px;
3706
3706
  }
3707
3707
 
3708
+ .leankylin-gridlines-button {
3709
+ display: flex;
3710
+ cursor: pointer;
3711
+ align-items: center;
3712
+ justify-content: center;
3713
+ width: 24px;
3714
+ height: 24px;
3715
+ border-radius: 4px;
3716
+ margin: 0 6px;
3717
+ }
3718
+
3719
+ .leankylin-gridlines-button:hover {
3720
+ background: #efefef;
3721
+ }
3722
+
3723
+ .leankylin-gridlines-button.active {
3724
+ background: #e6effd;
3725
+ }
3726
+
3727
+ .leankylin-headers-button {
3728
+ display: flex;
3729
+ cursor: pointer;
3730
+ align-items: center;
3731
+ justify-content: center;
3732
+ width: 24px;
3733
+ height: 24px;
3734
+ border-radius: 4px;
3735
+ margin: 0 6px;
3736
+ }
3737
+
3738
+ .leankylin-headers-button:hover {
3739
+ background: #efefef;
3740
+ }
3741
+
3742
+ .leankylin-headers-button.active {
3743
+ background: #e6effd;
3744
+ }
3745
+
3708
3746
  .leankylin-context-menu {
3709
3747
  max-height: 100%;
3710
3748
  overflow-y: auto;
@@ -3705,6 +3705,44 @@ label {
3705
3705
  padding: 0px 10px 0px 10px;
3706
3706
  }
3707
3707
 
3708
+ .leankylin-gridlines-button {
3709
+ display: flex;
3710
+ cursor: pointer;
3711
+ align-items: center;
3712
+ justify-content: center;
3713
+ width: 24px;
3714
+ height: 24px;
3715
+ border-radius: 4px;
3716
+ margin: 0 6px;
3717
+ }
3718
+
3719
+ .leankylin-gridlines-button:hover {
3720
+ background: #efefef;
3721
+ }
3722
+
3723
+ .leankylin-gridlines-button.active {
3724
+ background: #e6effd;
3725
+ }
3726
+
3727
+ .leankylin-headers-button {
3728
+ display: flex;
3729
+ cursor: pointer;
3730
+ align-items: center;
3731
+ justify-content: center;
3732
+ width: 24px;
3733
+ height: 24px;
3734
+ border-radius: 4px;
3735
+ margin: 0 6px;
3736
+ }
3737
+
3738
+ .leankylin-headers-button:hover {
3739
+ background: #efefef;
3740
+ }
3741
+
3742
+ .leankylin-headers-button.active {
3743
+ background: #e6effd;
3744
+ }
3745
+
3708
3746
  .leankylin-context-menu {
3709
3747
  max-height: 100%;
3710
3748
  overflow-y: auto;
package/dist/index.esm.js CHANGED
@@ -4693,7 +4693,7 @@ var SheetOverlay = function SheetOverlay() {
4693
4693
  }
4694
4694
  }, /*#__PURE__*/React.createElement("div", {
4695
4695
  className: "leankylin-col-header-wrap"
4696
- }, /*#__PURE__*/React.createElement("div", {
4696
+ }, context.showHeaders && ( /*#__PURE__*/React.createElement("div", {
4697
4697
  className: "leankylin-left-top",
4698
4698
  onClick: onLeftTopClick,
4699
4699
  style: {
@@ -4701,9 +4701,9 @@ var SheetOverlay = function SheetOverlay() {
4701
4701
  height: context.columnHeaderHeight - 1.5,
4702
4702
  background: context.headerBgColor
4703
4703
  }
4704
- }), /*#__PURE__*/React.createElement(ColumnHeader, null)), (context.showSearch || context.showReplace) && /*#__PURE__*/React.createElement(SearchReplace, null), /*#__PURE__*/React.createElement("div", {
4704
+ })), context.showHeaders && /*#__PURE__*/React.createElement(ColumnHeader, null)), (context.showSearch || context.showReplace) && /*#__PURE__*/React.createElement(SearchReplace, null), /*#__PURE__*/React.createElement("div", {
4705
4705
  className: "leankylin-row-body"
4706
- }, /*#__PURE__*/React.createElement(RowHeader, null), /*#__PURE__*/React.createElement(ScrollBar, {
4706
+ }, context.showHeaders && /*#__PURE__*/React.createElement(RowHeader, null), /*#__PURE__*/React.createElement(ScrollBar, {
4707
4707
  axis: "x"
4708
4708
  }), /*#__PURE__*/React.createElement(ScrollBar, {
4709
4709
  axis: "y"
@@ -8402,6 +8402,71 @@ var ZoomControl = function ZoomControl() {
8402
8402
  })));
8403
8403
  };
8404
8404
 
8405
+ var GridLinesControl = function GridLinesControl() {
8406
+ var _useContext = useContext(WorkbookContext),
8407
+ context = _useContext.context,
8408
+ setContext = _useContext.setContext;
8409
+ var toggleGridLines = useCallback(function () {
8410
+ setContext(function (ctx) {
8411
+ var index = getSheetIndex(ctx, ctx.currentSheetId);
8412
+ if (index == null) {
8413
+ return;
8414
+ }
8415
+ var showGridLines = !ctx.showGridLines;
8416
+ ctx.luckysheetfile[index].showGridLines = showGridLines ? 1 : 0;
8417
+ ctx.showGridLines = showGridLines;
8418
+ }, {
8419
+ noHistory: true
8420
+ });
8421
+ }, [setContext]);
8422
+ return /*#__PURE__*/React.createElement("div", {
8423
+ className: "leankylin-gridlines-button".concat(context.showGridLines ? " active" : ""),
8424
+ title: context.showGridLines ? "隐藏网格线" : "显示网格线",
8425
+ onClick: function onClick(e) {
8426
+ toggleGridLines();
8427
+ e.stopPropagation();
8428
+ }
8429
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8430
+ name: "grid-lines",
8431
+ width: 16,
8432
+ height: 16
8433
+ }));
8434
+ };
8435
+
8436
+ var HeadersControl = function HeadersControl() {
8437
+ var _useContext = useContext(WorkbookContext),
8438
+ context = _useContext.context,
8439
+ setContext = _useContext.setContext,
8440
+ settings = _useContext.settings;
8441
+ var toggleHeaders = useCallback(function () {
8442
+ setContext(function (ctx) {
8443
+ var index = getSheetIndex(ctx, ctx.currentSheetId);
8444
+ if (index == null) {
8445
+ return;
8446
+ }
8447
+ var showHeaders = !ctx.showHeaders;
8448
+ ctx.showHeaders = showHeaders;
8449
+ ctx.luckysheetfile[index].showHeaders = showHeaders ? 1 : 0;
8450
+ ctx.rowHeaderWidth = showHeaders ? settings.rowHeaderWidth * ctx.zoomRatio : 0;
8451
+ ctx.columnHeaderHeight = showHeaders ? settings.columnHeaderHeight * ctx.zoomRatio : 0;
8452
+ }, {
8453
+ noHistory: true
8454
+ });
8455
+ }, [setContext, settings.columnHeaderHeight, settings.rowHeaderWidth]);
8456
+ return /*#__PURE__*/React.createElement("div", {
8457
+ className: "leankylin-headers-button".concat(context.showHeaders ? " active" : ""),
8458
+ title: context.showHeaders ? "隐藏表头行号列" : "显示表头行号列",
8459
+ onClick: function onClick(e) {
8460
+ toggleHeaders();
8461
+ e.stopPropagation();
8462
+ }
8463
+ }, /*#__PURE__*/React.createElement(SVGIcon, {
8464
+ name: "header",
8465
+ width: 16,
8466
+ height: 16
8467
+ }));
8468
+ };
8469
+
8405
8470
  var SheetTab = function SheetTab() {
8406
8471
  var _useContext = useContext(WorkbookContext),
8407
8472
  context = _useContext.context,
@@ -8566,7 +8631,7 @@ var SheetTab = function SheetTab() {
8566
8631
  height: 12
8567
8632
  })))), /*#__PURE__*/React.createElement("div", {
8568
8633
  className: "leankylin-sheet-area-right"
8569
- }, /*#__PURE__*/React.createElement(ZoomControl, null)));
8634
+ }, /*#__PURE__*/React.createElement(GridLinesControl, null), /*#__PURE__*/React.createElement(HeadersControl, null), /*#__PURE__*/React.createElement(ZoomControl, null)));
8570
8635
  };
8571
8636
 
8572
8637
  var Divider$1 = function Divider() {
@@ -10072,6 +10137,57 @@ var SVGDefines = function SVGDefines() {
10072
10137
  transform: "rotate(45 13.9375 6.12316)",
10073
10138
  stroke: "#525C6F",
10074
10139
  strokeWidth: "1.5"
10140
+ })), /*#__PURE__*/React.createElement("symbol", {
10141
+ viewBox: "0 0 24 24",
10142
+ fill: "none",
10143
+ id: "header"
10144
+ }, /*#__PURE__*/React.createElement("rect", {
10145
+ x: "4.75",
10146
+ y: "4.75",
10147
+ width: "14.5",
10148
+ height: "14.5",
10149
+ stroke: "#525C6F",
10150
+ strokeWidth: "1.5"
10151
+ }), /*#__PURE__*/React.createElement("path", {
10152
+ d: "M4.75 9.5H19.25M9.5 9.5V19.25",
10153
+ stroke: "#525C6F",
10154
+ strokeWidth: "1.5"
10155
+ }), /*#__PURE__*/React.createElement("rect", {
10156
+ x: "4.75",
10157
+ y: "4.75",
10158
+ width: "4.75",
10159
+ height: "4.75",
10160
+ fill: "#525C6F",
10161
+ fillOpacity: "0.2"
10162
+ }), /*#__PURE__*/React.createElement("rect", {
10163
+ x: "9.5",
10164
+ y: "4.75",
10165
+ width: "9.75",
10166
+ height: "4.75",
10167
+ fill: "#525C6F",
10168
+ fillOpacity: "0.2"
10169
+ }), /*#__PURE__*/React.createElement("rect", {
10170
+ x: "4.75",
10171
+ y: "9.5",
10172
+ width: "4.75",
10173
+ height: "9.75",
10174
+ fill: "#525C6F",
10175
+ fillOpacity: "0.2"
10176
+ })), /*#__PURE__*/React.createElement("symbol", {
10177
+ viewBox: "0 0 24 24",
10178
+ fill: "none",
10179
+ id: "grid-lines"
10180
+ }, /*#__PURE__*/React.createElement("rect", {
10181
+ x: "4.75",
10182
+ y: "4.75",
10183
+ width: "14.5",
10184
+ height: "14.5",
10185
+ stroke: "#525C6F",
10186
+ strokeWidth: "1.5"
10187
+ }), /*#__PURE__*/React.createElement("path", {
10188
+ d: "M9.58333 4.75V19.25M14.4167 4.75V19.25M4.75 9.58333H19.25M4.75 14.4167H19.25",
10189
+ stroke: "#525C6F",
10190
+ strokeWidth: "1.5"
10075
10191
  })), /*#__PURE__*/React.createElement("symbol", {
10076
10192
  viewBox: "0 0 24 24",
10077
10193
  fill: "none",
@@ -12598,6 +12714,16 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12598
12714
  draftCtx.zoomRatio = _.isNil(sheet.zoomRatio) ? 1 : sheet.zoomRatio;
12599
12715
  draftCtx.rowHeaderWidth = mergedSettings.rowHeaderWidth * draftCtx.zoomRatio;
12600
12716
  draftCtx.columnHeaderHeight = mergedSettings.columnHeaderHeight * draftCtx.zoomRatio;
12717
+ if (!_.isNil(sheet.showHeaders)) {
12718
+ var showHeaders = sheet.showHeaders;
12719
+ draftCtx.showHeaders = !(showHeaders === 0 || showHeaders === false);
12720
+ } else {
12721
+ draftCtx.showHeaders = true;
12722
+ }
12723
+ if (!draftCtx.showHeaders) {
12724
+ draftCtx.rowHeaderWidth = 0;
12725
+ draftCtx.columnHeaderHeight = 0;
12726
+ }
12601
12727
  if (!_.isNil(sheet.defaultRowHeight)) {
12602
12728
  draftCtx.defaultrowlen = Number(sheet.defaultRowHeight);
12603
12729
  } else {
package/dist/index.js CHANGED
@@ -4703,7 +4703,7 @@ var SheetOverlay = function SheetOverlay() {
4703
4703
  }
4704
4704
  }, /*#__PURE__*/React__default['default'].createElement("div", {
4705
4705
  className: "leankylin-col-header-wrap"
4706
- }, /*#__PURE__*/React__default['default'].createElement("div", {
4706
+ }, context.showHeaders && ( /*#__PURE__*/React__default['default'].createElement("div", {
4707
4707
  className: "leankylin-left-top",
4708
4708
  onClick: onLeftTopClick,
4709
4709
  style: {
@@ -4711,9 +4711,9 @@ var SheetOverlay = function SheetOverlay() {
4711
4711
  height: context.columnHeaderHeight - 1.5,
4712
4712
  background: context.headerBgColor
4713
4713
  }
4714
- }), /*#__PURE__*/React__default['default'].createElement(ColumnHeader, null)), (context.showSearch || context.showReplace) && /*#__PURE__*/React__default['default'].createElement(SearchReplace, null), /*#__PURE__*/React__default['default'].createElement("div", {
4714
+ })), context.showHeaders && /*#__PURE__*/React__default['default'].createElement(ColumnHeader, null)), (context.showSearch || context.showReplace) && /*#__PURE__*/React__default['default'].createElement(SearchReplace, null), /*#__PURE__*/React__default['default'].createElement("div", {
4715
4715
  className: "leankylin-row-body"
4716
- }, /*#__PURE__*/React__default['default'].createElement(RowHeader, null), /*#__PURE__*/React__default['default'].createElement(ScrollBar, {
4716
+ }, context.showHeaders && /*#__PURE__*/React__default['default'].createElement(RowHeader, null), /*#__PURE__*/React__default['default'].createElement(ScrollBar, {
4717
4717
  axis: "x"
4718
4718
  }), /*#__PURE__*/React__default['default'].createElement(ScrollBar, {
4719
4719
  axis: "y"
@@ -8412,6 +8412,71 @@ var ZoomControl = function ZoomControl() {
8412
8412
  })));
8413
8413
  };
8414
8414
 
8415
+ var GridLinesControl = function GridLinesControl() {
8416
+ var _useContext = React.useContext(WorkbookContext),
8417
+ context = _useContext.context,
8418
+ setContext = _useContext.setContext;
8419
+ var toggleGridLines = React.useCallback(function () {
8420
+ setContext(function (ctx) {
8421
+ var index = core.getSheetIndex(ctx, ctx.currentSheetId);
8422
+ if (index == null) {
8423
+ return;
8424
+ }
8425
+ var showGridLines = !ctx.showGridLines;
8426
+ ctx.luckysheetfile[index].showGridLines = showGridLines ? 1 : 0;
8427
+ ctx.showGridLines = showGridLines;
8428
+ }, {
8429
+ noHistory: true
8430
+ });
8431
+ }, [setContext]);
8432
+ return /*#__PURE__*/React__default['default'].createElement("div", {
8433
+ className: "leankylin-gridlines-button".concat(context.showGridLines ? " active" : ""),
8434
+ title: context.showGridLines ? "隐藏网格线" : "显示网格线",
8435
+ onClick: function onClick(e) {
8436
+ toggleGridLines();
8437
+ e.stopPropagation();
8438
+ }
8439
+ }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
8440
+ name: "grid-lines",
8441
+ width: 16,
8442
+ height: 16
8443
+ }));
8444
+ };
8445
+
8446
+ var HeadersControl = function HeadersControl() {
8447
+ var _useContext = React.useContext(WorkbookContext),
8448
+ context = _useContext.context,
8449
+ setContext = _useContext.setContext,
8450
+ settings = _useContext.settings;
8451
+ var toggleHeaders = React.useCallback(function () {
8452
+ setContext(function (ctx) {
8453
+ var index = core.getSheetIndex(ctx, ctx.currentSheetId);
8454
+ if (index == null) {
8455
+ return;
8456
+ }
8457
+ var showHeaders = !ctx.showHeaders;
8458
+ ctx.showHeaders = showHeaders;
8459
+ ctx.luckysheetfile[index].showHeaders = showHeaders ? 1 : 0;
8460
+ ctx.rowHeaderWidth = showHeaders ? settings.rowHeaderWidth * ctx.zoomRatio : 0;
8461
+ ctx.columnHeaderHeight = showHeaders ? settings.columnHeaderHeight * ctx.zoomRatio : 0;
8462
+ }, {
8463
+ noHistory: true
8464
+ });
8465
+ }, [setContext, settings.columnHeaderHeight, settings.rowHeaderWidth]);
8466
+ return /*#__PURE__*/React__default['default'].createElement("div", {
8467
+ className: "leankylin-headers-button".concat(context.showHeaders ? " active" : ""),
8468
+ title: context.showHeaders ? "隐藏表头行号列" : "显示表头行号列",
8469
+ onClick: function onClick(e) {
8470
+ toggleHeaders();
8471
+ e.stopPropagation();
8472
+ }
8473
+ }, /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
8474
+ name: "header",
8475
+ width: 16,
8476
+ height: 16
8477
+ }));
8478
+ };
8479
+
8415
8480
  var SheetTab = function SheetTab() {
8416
8481
  var _useContext = React.useContext(WorkbookContext),
8417
8482
  context = _useContext.context,
@@ -8576,7 +8641,7 @@ var SheetTab = function SheetTab() {
8576
8641
  height: 12
8577
8642
  })))), /*#__PURE__*/React__default['default'].createElement("div", {
8578
8643
  className: "leankylin-sheet-area-right"
8579
- }, /*#__PURE__*/React__default['default'].createElement(ZoomControl, null)));
8644
+ }, /*#__PURE__*/React__default['default'].createElement(GridLinesControl, null), /*#__PURE__*/React__default['default'].createElement(HeadersControl, null), /*#__PURE__*/React__default['default'].createElement(ZoomControl, null)));
8580
8645
  };
8581
8646
 
8582
8647
  var Divider$1 = function Divider() {
@@ -10082,6 +10147,57 @@ var SVGDefines = function SVGDefines() {
10082
10147
  transform: "rotate(45 13.9375 6.12316)",
10083
10148
  stroke: "#525C6F",
10084
10149
  strokeWidth: "1.5"
10150
+ })), /*#__PURE__*/React__default['default'].createElement("symbol", {
10151
+ viewBox: "0 0 24 24",
10152
+ fill: "none",
10153
+ id: "header"
10154
+ }, /*#__PURE__*/React__default['default'].createElement("rect", {
10155
+ x: "4.75",
10156
+ y: "4.75",
10157
+ width: "14.5",
10158
+ height: "14.5",
10159
+ stroke: "#525C6F",
10160
+ strokeWidth: "1.5"
10161
+ }), /*#__PURE__*/React__default['default'].createElement("path", {
10162
+ d: "M4.75 9.5H19.25M9.5 9.5V19.25",
10163
+ stroke: "#525C6F",
10164
+ strokeWidth: "1.5"
10165
+ }), /*#__PURE__*/React__default['default'].createElement("rect", {
10166
+ x: "4.75",
10167
+ y: "4.75",
10168
+ width: "4.75",
10169
+ height: "4.75",
10170
+ fill: "#525C6F",
10171
+ fillOpacity: "0.2"
10172
+ }), /*#__PURE__*/React__default['default'].createElement("rect", {
10173
+ x: "9.5",
10174
+ y: "4.75",
10175
+ width: "9.75",
10176
+ height: "4.75",
10177
+ fill: "#525C6F",
10178
+ fillOpacity: "0.2"
10179
+ }), /*#__PURE__*/React__default['default'].createElement("rect", {
10180
+ x: "4.75",
10181
+ y: "9.5",
10182
+ width: "4.75",
10183
+ height: "9.75",
10184
+ fill: "#525C6F",
10185
+ fillOpacity: "0.2"
10186
+ })), /*#__PURE__*/React__default['default'].createElement("symbol", {
10187
+ viewBox: "0 0 24 24",
10188
+ fill: "none",
10189
+ id: "grid-lines"
10190
+ }, /*#__PURE__*/React__default['default'].createElement("rect", {
10191
+ x: "4.75",
10192
+ y: "4.75",
10193
+ width: "14.5",
10194
+ height: "14.5",
10195
+ stroke: "#525C6F",
10196
+ strokeWidth: "1.5"
10197
+ }), /*#__PURE__*/React__default['default'].createElement("path", {
10198
+ d: "M9.58333 4.75V19.25M14.4167 4.75V19.25M4.75 9.58333H19.25M4.75 14.4167H19.25",
10199
+ stroke: "#525C6F",
10200
+ strokeWidth: "1.5"
10085
10201
  })), /*#__PURE__*/React__default['default'].createElement("symbol", {
10086
10202
  viewBox: "0 0 24 24",
10087
10203
  fill: "none",
@@ -12608,6 +12724,16 @@ var Workbook = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
12608
12724
  draftCtx.zoomRatio = ___default['default'].isNil(sheet.zoomRatio) ? 1 : sheet.zoomRatio;
12609
12725
  draftCtx.rowHeaderWidth = mergedSettings.rowHeaderWidth * draftCtx.zoomRatio;
12610
12726
  draftCtx.columnHeaderHeight = mergedSettings.columnHeaderHeight * draftCtx.zoomRatio;
12727
+ if (!___default['default'].isNil(sheet.showHeaders)) {
12728
+ var showHeaders = sheet.showHeaders;
12729
+ draftCtx.showHeaders = !(showHeaders === 0 || showHeaders === false);
12730
+ } else {
12731
+ draftCtx.showHeaders = true;
12732
+ }
12733
+ if (!draftCtx.showHeaders) {
12734
+ draftCtx.rowHeaderWidth = 0;
12735
+ draftCtx.columnHeaderHeight = 0;
12736
+ }
12611
12737
  if (!___default['default'].isNil(sheet.defaultRowHeight)) {
12612
12738
  draftCtx.defaultrowlen = Number(sheet.defaultRowHeight);
12613
12739
  } else {
@@ -3705,6 +3705,44 @@ label {
3705
3705
  padding: 0px 10px 0px 10px;
3706
3706
  }
3707
3707
 
3708
+ .leankylin-gridlines-button {
3709
+ display: flex;
3710
+ cursor: pointer;
3711
+ align-items: center;
3712
+ justify-content: center;
3713
+ width: 24px;
3714
+ height: 24px;
3715
+ border-radius: 4px;
3716
+ margin: 0 6px;
3717
+ }
3718
+
3719
+ .leankylin-gridlines-button:hover {
3720
+ background: #efefef;
3721
+ }
3722
+
3723
+ .leankylin-gridlines-button.active {
3724
+ background: #e6effd;
3725
+ }
3726
+
3727
+ .leankylin-headers-button {
3728
+ display: flex;
3729
+ cursor: pointer;
3730
+ align-items: center;
3731
+ justify-content: center;
3732
+ width: 24px;
3733
+ height: 24px;
3734
+ border-radius: 4px;
3735
+ margin: 0 6px;
3736
+ }
3737
+
3738
+ .leankylin-headers-button:hover {
3739
+ background: #efefef;
3740
+ }
3741
+
3742
+ .leankylin-headers-button.active {
3743
+ background: #e6effd;
3744
+ }
3745
+
3708
3746
  .leankylin-context-menu {
3709
3747
  max-height: 100%;
3710
3748
  overflow-y: auto;