Responsive upload list table.

This commit is contained in:
Jayden Seric 2017-04-09 15:14:32 +10:00
parent 67eb0d6ff7
commit 34758d7c89

View File

@ -3,6 +3,7 @@ import uploadsQuery from '../queries/uploads'
const UploadList = ({data: {uploads}}) => { const UploadList = ({data: {uploads}}) => {
return ( return (
<div>
<table> <table>
<thead> <thead>
<tr> <tr>
@ -22,16 +23,29 @@ const UploadList = ({data: {uploads}}) => {
</tr> </tr>
))} ))}
</tbody> </tbody>
</table>
<style jsx>{` <style jsx>{`
div {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
table { table {
border-spacing: 0;
padding: 1em 0;
text-align: left; text-align: left;
border-spacing: 0.75em; font-size: 90%;
}
th,
td {
padding: 0.3em 0.5em;
} }
td { td {
vertical-align: top; vertical-align: top;
white-space: nowrap;
} }
`}</style> `}</style>
</table> </div>
) )
} }