0
0
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:
Víctor Losada Hernández
2025-02-12 12:54:34 +01:00
parent 489f00b785
commit 9944398e4c
3 changed files with 47 additions and 23 deletions

View File

@@ -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>

View File

@@ -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;
}
}
}
}