Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Feb 28, 2024
1 parent 96dd259 commit 7e4dc5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/webview/columns/data-column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ import type { MemorySizeOptions } from '../components/memory-table';
import { elementInnerWidth, characterWidthInContainer } from '../utils/window';

export class DataColumn implements ColumnContribution {
static ID = 'data';
static CLASS_NAME = 'column-data';

readonly id = DataColumn.ID;
readonly id = 'data';
readonly className = DataColumn.CLASS_NAME;
readonly label = 'Data';
readonly priority = 1;
Expand Down
6 changes: 3 additions & 3 deletions src/webview/components/memory-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ export class MemoryTable extends React.PureComponent<MemoryTableProps, MemoryTab
{...props}
>
{this.props.columnOptions.map(({ contribution }) => {
const isContentWidhtFit = contribution.fittingType === 'content-width';
const isContentWidthFit = contribution.fittingType === 'content-width';
const className = classNames(contribution.className, {
'content-width-fit': isContentWidhtFit
'content-width-fit': isContentWidthFit
});

return <Column
Expand All @@ -224,7 +224,7 @@ export class MemoryTable extends React.PureComponent<MemoryTableProps, MemoryTab
header={contribution.label}
className={className}
headerClassName={className}
style={{ width: isContentWidhtFit ? undefined : `${columnWidth}%` }}
style={{ width: isContentWidthFit ? undefined : `${columnWidth}%` }}
body={(row?: MemoryRowData) => row && contribution.render(row, this.props.memory!, this.props)}>
{contribution.label}
</Column>;
Expand Down

0 comments on commit 7e4dc5b

Please sign in to comment.