Skip to content

Commit

Permalink
Table sticky header, page 0 padding
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 21, 2023
1 parent ab8303c commit 0f9bdf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
margin: 0 auto;
padding: 2rem;
text-align: center;
padding: 0;
}

table {
Expand All @@ -19,6 +20,8 @@ th {
background-color: #f0f0f0;
border: 1px solid #e0e0e0;
border-bottom: 1px solid #111;
position: sticky;
top: 0;
}

td {
Expand Down
1 change: 0 additions & 1 deletion src/ImageItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export default function ImageItem({ source, zarr_columns }) {
let wrapperStyle = {
width: 150,
height: 100,
position: "relative",
};

function renderColumn(col_name) {
Expand Down
2 changes: 0 additions & 2 deletions src/Thumbnail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ export default function Thumbnail({ source, attrs }) {
}, []);

return (
<div>
<canvas
style={{ maxWidth: 100, maxHeight: 100 }}
ref={canvas}
height={canvasSize.height}
width={canvasSize.width}
/>
</div>
);
}

0 comments on commit 0f9bdf1

Please sign in to comment.