mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 12:42:41 +00:00
add decent table styles
This commit is contained in:
@@ -26,7 +26,7 @@ const authorLookup = ()=>{
|
||||
</>;
|
||||
|
||||
return <>
|
||||
<h2>{`Results - ${results.length}`}</h2>
|
||||
<h2>{`Results - ${results.length} brews` }</h2>
|
||||
<table className='resultsTable'>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -45,8 +45,8 @@ const authorLookup = ()=>{
|
||||
})
|
||||
.map((brew, idx)=>{
|
||||
return <tr key={idx}>
|
||||
<td>{brew.title}</td>
|
||||
<td>{brew.shareId}</td>
|
||||
<td><strong>{brew.title}</strong></td>
|
||||
<td><a href={`/share/${brew.shareId}`}>{brew.shareId}</a></td>
|
||||
<td>{brew.editId}</td>
|
||||
<td>{brew.updatedAt}</td>
|
||||
<td>{brew.googleId ? 'Google' : 'Homebrewery'}</td>
|
||||
|
||||
@@ -26,23 +26,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
table.resultsTable {
|
||||
* {
|
||||
border: 1px solid black;
|
||||
vertical-align: middle;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: center;
|
||||
|
||||
&:first-of-type {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user