Skip to content

Commit

Permalink
Chore: Remove padding for CSV files (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press committed Jul 5, 2017
1 parent 08eb9e9 commit 762896e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/lib/viewers/text/BoxCSV.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { Grid } from 'react-virtualized';

const PADDING = 80;
const HEIGHT_ROW = 30;
const WIDTH_SCROLLER = 5;
const WIDTH_COLUMN = 160;
Expand Down Expand Up @@ -75,8 +74,8 @@ const WIDTH_BORDER = 2;
const rowCount = this.data.length;
const columnCount = this.data[0].length;

const maxWidth = this.csvEl.clientWidth - PADDING + WIDTH_BORDER;
const maxHeight = this.csvEl.clientHeight - PADDING + WIDTH_BORDER;
const maxWidth = this.csvEl.clientWidth;
const maxHeight = this.csvEl.clientHeight;

const calculatedHeight = rowCount * HEIGHT_ROW;
const calculatedWidth = columnCount * WIDTH_COLUMN;
Expand Down
7 changes: 0 additions & 7 deletions src/lib/viewers/text/CSV.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@
}

.bp-text-csv-grid {
border: 1px solid $off-white;
width: 100%;

&:focus {
border-color: darken($sf-fog, 14%);
box-shadow: 0 1px 2px fade-out($black, .9);
outline: 0;
}
}

.bp-text-csv-odd-row {
Expand Down

0 comments on commit 762896e

Please sign in to comment.