pixel-react-excel-sheet 1.0.26 → 1.0.28

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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pixel-react-excel-sheet",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "author": {
9
9
  "name": "thaneshwaran"
10
- },
10
+ },
11
11
  "license": "MIT",
12
12
  "devDependencies": {
13
13
  "@babel/preset-react": "^7.25.9",
@@ -102,37 +102,35 @@ const RowIndicator: Types.RowIndicatorComponent = ({
102
102
  );
103
103
 
104
104
  return (
105
- <th
106
- style={{
107
- height: `${rowHeight}px`,
108
- minWidth: '60px',
109
- }}
110
- className={classNames('ff-spreadsheet-header', {
111
- 'ff-spreadsheet-header--selected': selected,
112
- })}
113
- onClick={handleClick}
114
- onContextMenu={contextClick}
115
- tabIndex={0}
116
- >
117
- <Typography fontWeight="medium">
118
- {label !== undefined ? label : row + 1}
119
- </Typography>
120
-
121
- <div
122
- onMouseDown={onMouseDown}
123
- onClick={() => activate({ row, column: -1 })}
124
- style={{
125
- zIndex: 'inherit',
126
- height: '2px',
127
- position: 'absolute',
128
- right: 0,
129
- bottom: 0,
130
- width: '100%',
131
- cursor: 'ns-resize',
132
- }}
133
- />
134
- </th>
135
-
105
+ <th
106
+ style={{
107
+ height: `${rowHeight}px`,
108
+ minWidth: '60px',
109
+ }} //Dynamic value, Inline Styling required
110
+ className={classNames('ff-spreadsheet-header', {
111
+ 'ff-spreadsheet-header--selected': selected,
112
+ })}
113
+ onClick={handleClick}
114
+ onContextMenu={contextClick}
115
+ tabIndex={0}
116
+ >
117
+ <Typography fontWeight="medium">
118
+ {label !== undefined ? label : row + 1}
119
+ </Typography>
120
+ <div
121
+ onMouseDown={onMouseDown}
122
+ onClick={() => activate({ row, column: -1 })}
123
+ style={{
124
+ zIndex: 'inherit',
125
+ height: '2px',
126
+ position: 'absolute',
127
+ right: 0,
128
+ bottom: 0,
129
+ width: '100%',
130
+ cursor: 'ns-resize',
131
+ }}
132
+ />
133
+ </th>
136
134
  );
137
135
  };
138
136
 
@@ -3,6 +3,7 @@
3
3
  .ff-excel {
4
4
  display: flex;
5
5
  flex-direction: column;
6
+ width: 100%;
6
7
 
7
8
  .ff-excel-toolbar-container {
8
9
  position: relative;
@@ -28,6 +29,10 @@
28
29
  color: var(--text-color);
29
30
  scrollbar-width: none;
30
31
  display: inline-block;
32
+ width: 100%;
33
+ top: 0px;
34
+ left: 0px;
35
+
31
36
  }
32
37
 
33
38
  .ff-spreadsheet-active-cell {