Skip to content

Commit 172f4ca

Browse files
Remove references to non-existent class names
1 parent 7eed1ed commit 172f4ca

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/components/InlineInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class InlineInput extends React.Component<Props, State> {
2929
const { placeholder, style, type } = this.props;
3030
return <input
3131
ref={this.ref}
32-
className="inline-input"
3332
name="text"
3433
type={ type ?? "text" }
3534
style={{ ...styles.inlineInput, ...style }}

src/table/TableCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TableCell extends React.Component<Props, State> {
2222
const fontWeight = isIndex ? 600 : 'regular'
2323
const paddingRight = 12 + (isLastColumn ? scrollbarWidth : 0)
2424
const paddingBottom = 6 + (isLastRow ? scrollbarWidth : 0)
25-
return <div className="table-view-cell"
25+
return <div
2626
style={{ ...styles.cell, fontWeight, width, height, paddingRight, paddingBottom, borderRight }}>
2727
{value}
2828
</div>

src/table/TableData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import SessionController from "../controllers/SessionController"
2+
23
import { TableInfo, TablePage, TableRow } from "../models/TableInfo"
34

45
const fetchDelay = 500 // ms

src/table/TableHeaderCell.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ class TableHeaderCell extends React.Component<Props, State> {
1919
const borderRight = isLastColumn ? 'none' : '1px solid #e6e6e6';
2020
if (isIndex) {
2121
return <div
22-
className="table-view-header-cell"
2322
style={{ ...styles.headerCell, left: scrollX, width: width, borderRight, zIndex: 1 }}>
2423
{ content }
2524
</div>
2625
} else {
2726
return <div
28-
className="table-view-header-cell"
2927
style={{ ...styles.headerCell, width: width, borderRight }}>
3028
<span style={styles.inner}>{ content }</span>
3129
</div>

src/table/TablePreview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22

33
import TableData from './TableData';
44
import TableView from './TableView';
5+
56
import { TableInfo } from '../models/TableInfo';
67

78
interface Props {

src/table/TableView.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react'
22
import ContentLoader from 'react-content-loader';
33

4-
import TableHeaderCell from './TableHeaderCell'
5-
import TableCell from './TableCell'
64
import ObjectUtilities from '../utilities/ObjectUtilities'
7-
import TableData, { MeasureInfo, RowRange, RowSlice } from './TableData'
85
import SessionController, { SessionControllerEventListener } from '../controllers/SessionController'
6+
import TableCell from './TableCell'
7+
import TableData, { MeasureInfo, RowRange, RowSlice } from './TableData'
8+
import TableHeaderCell from './TableHeaderCell'
9+
910
import { TablePage } from '../models/TableInfo'
1011

1112
interface Props {
@@ -108,10 +109,10 @@ class TableView extends React.Component<Props, State> implements SessionControll
108109

109110
table.onFetchRangeUpdated = (fetchRange) => this.setState({ fetchRange })
110111

111-
return <div className='table-view' style={{ ...styles.tableView, ...tableStyle }}>
112-
<div className="table-view-table" style={styles.table}>
113-
<div className="table-view-header" style={{ ...styles.header, left: startColumnX, height: this.minRowHeight, boxShadow: (scrollY > 0 ? shadow : 'none') }}>
114-
<div className="table-view-row" style={{ ...styles.row, height: '100%' }}>
112+
return <div style={{ ...styles.tableView, ...tableStyle }}>
113+
<div style={styles.table}>
114+
<div style={{ ...styles.header, left: startColumnX, height: this.minRowHeight, boxShadow: (scrollY > 0 ? shadow : 'none') }}>
115+
<div style={{ ...styles.row, height: '100%' }}>
115116
<TableHeaderCell key={''} content={''} isIndex={true} isLastColumn={false} scrollX={scrollX} width={indexWidth} scrollbarWidth={TableView.scrollbarWidth} />
116117
{ columns.map((column, j) => {
117118
const isLastColumn = (j == columns.length - 1)
@@ -120,7 +121,7 @@ class TableView extends React.Component<Props, State> implements SessionControll
120121
}) }</div>
121122
</div>
122123
<div style={{ display: 'flex' }}>
123-
<div className="table-view-index" style={{ ...styles.index, top: rowSlice.startY - scrollY, boxShadow: (scrollX > 0 ? shadow : 'none') }}>
124+
<div style={{ ...styles.index, top: rowSlice.startY - scrollY, boxShadow: (scrollX > 0 ? shadow : 'none') }}>
124125
{ rowSlice.rows.map((row, n) => {
125126
const rowIndex = rowSlice.startIndex + n
126127
const key = row?.index ?? `empty-${n}`
@@ -129,12 +130,12 @@ class TableView extends React.Component<Props, State> implements SessionControll
129130
const cellHeight = rowSlice.rowHeights[n]
130131
const rowHeight = cellHeight + (isLastRow ? 8 : 0)
131132
const value = row ? String(row.index + 1) : '' // For UI start counting at 1
132-
return <div key={key} className="table-view-row" style={{ ...styles.row, height: rowHeight, borderBottom }}>
133+
return <div key={key} style={{ ...styles.row, height: rowHeight, borderBottom }}>
133134
<TableCell width={indexWidth} height={cellHeight} value={value} isIndex={true} isLastColumn={false} isLastRow={isLastRow} scrollbarWidth={TableView.scrollbarWidth} />
134135
</div>
135136
})}
136137
</div>
137-
<div className="table-view-body" style={{ ...styles.body, left: startColumnX, top: rowSlice.startY - scrollY, height: totalBodyHeight }}>
138+
<div style={{ ...styles.body, left: startColumnX, top: rowSlice.startY - scrollY, height: totalBodyHeight }}>
138139
{ rowSlice.rows.map((row, n) => {
139140
const rowIndex = rowSlice.startIndex + n
140141
const key = row?.index ?? `empty-${n}`
@@ -148,14 +149,14 @@ class TableView extends React.Component<Props, State> implements SessionControll
148149
const rowWidth = totalBodyWidth
149150
const innerRowHeight = rowHeight - 1 // -1 for border
150151
const padding = 6
151-
return <div key={key} className="table-view-row" style={{ ...styles.row, borderBottom, width: rowWidth, height: rowHeight, background }}>
152+
return <div key={key} style={{ ...styles.row, borderBottom, width: rowWidth, height: rowHeight, background }}>
152153
<ContentLoader viewBox={`0 0 ${rowWidth} ${innerRowHeight}`}>
153154
<rect x={padding} y={padding} width={rowWidth - (2 * padding)} height={innerRowHeight - (2 * padding)} />
154155
</ContentLoader>
155156
</div>
156157
}
157158
// Regular render
158-
return <div key={key} className="table-view-row" style={{ ...styles.row, borderBottom, height: rowHeight, background }}>{ columns.map((_column, j) => {
159+
return <div key={key} style={{ ...styles.row, borderBottom, height: rowHeight, background }}>{ columns.map((_column, j) => {
159160
const value = row?.values[j] ?? ''
160161
const width = columnWidths[j]
161162
const isLastColumn = (j == columns.length - 1)
@@ -165,8 +166,8 @@ class TableView extends React.Component<Props, State> implements SessionControll
165166
</div>
166167
</div>
167168
</div>
168-
<div className='table-view-scroll-view-container' style={{ ...styles.scrollViewContainer, pointerEvents: 'auto' }}>
169-
<div ref={this.scrollViewRef} className='table-view-scroll-view' style={{ ...styles.scrollView, marginLeft: indexWidth, marginTop: this.minRowHeight }} onScroll={this.handleScrollViewportChanged} onResize={this.handleScrollViewportChanged}>
169+
<div style={{ ...styles.scrollViewContainer, pointerEvents: 'auto' }}>
170+
<div ref={this.scrollViewRef} style={{ ...styles.scrollView, marginLeft: indexWidth, marginTop: this.minRowHeight }} onScroll={this.handleScrollViewportChanged} onResize={this.handleScrollViewportChanged}>
170171
<div style={{ minWidth: '100%', width: totalBodyWidth, height: totalBodyHeight }}></div>
171172
</div>
172173
</div>

0 commit comments

Comments
 (0)