v1.3.0: Wetterdaten in Liste, Zeit als eine Spalte
- Vollständige Liste: Start- und Endzeit in einer Spalte untereinander - Vollständige Liste: neue Wetter-Spalte (Temp/Feuchte/Druck) ganz rechts - Kompakte Vorschau bleibt unverändert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,13 +72,20 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 20, co
|
||||
<thead>
|
||||
<tr className="bg-gray-100 text-left">
|
||||
<th className={`${head} whitespace-nowrap`}>Datum</th>
|
||||
<th className={`${head} whitespace-nowrap`}>Start</th>
|
||||
<th className={`${head} whitespace-nowrap`}>Ende</th>
|
||||
{compact ? (
|
||||
<>
|
||||
<th className={`${head} whitespace-nowrap`}>Start</th>
|
||||
<th className={`${head} whitespace-nowrap`}>Ende</th>
|
||||
</>
|
||||
) : (
|
||||
<th className={`${head} whitespace-nowrap text-center`}>Zeit</th>
|
||||
)}
|
||||
<th className={head}>Art</th>
|
||||
<th className={`${head} text-center w-10`}>Bes.</th>
|
||||
<th className={head}>BEOs</th>
|
||||
<th className={head}>Objekte</th>
|
||||
{!compact && <th className={head}>Bemerkungen</th>}
|
||||
{!compact && <th className={head}>Wetter</th>}
|
||||
<th className={`${head} text-center print:hidden`}>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -86,8 +93,18 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 20, co
|
||||
{entries.map((e) => (
|
||||
<tr key={e.ID} className="hover:bg-gray-50">
|
||||
<td className={`${cell} whitespace-nowrap`}>{formatDate(e.Beginn, compact)}</td>
|
||||
<td className={`${cell} whitespace-nowrap`}>{formatTime(e.Beginn)}</td>
|
||||
<td className={`${cell} whitespace-nowrap`}>{formatTime(e.Ende)}</td>
|
||||
{compact ? (
|
||||
<>
|
||||
<td className={`${cell} whitespace-nowrap`}>{formatTime(e.Beginn)}</td>
|
||||
<td className={`${cell} whitespace-nowrap`}>{formatTime(e.Ende)}</td>
|
||||
</>
|
||||
) : (
|
||||
<td className={`${cell} whitespace-nowrap text-center`}>
|
||||
<div>{formatTime(e.Beginn)}</div>
|
||||
<div className="text-gray-400 leading-none">—</div>
|
||||
<div>{formatTime(e.Ende)}</div>
|
||||
</td>
|
||||
)}
|
||||
<td className={cell}>{e.ArtFuehrung}</td>
|
||||
<td className={`${cell} text-center`}>{e.Besucher || ''}</td>
|
||||
<td className={cell}>{e.BEOs || '—'}</td>
|
||||
@@ -95,6 +112,17 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 20, co
|
||||
{!compact && (
|
||||
<td className={cell}>{e.Bemerkungen || ''}</td>
|
||||
)}
|
||||
{!compact && (
|
||||
<td className={cell}>
|
||||
{e.WetterTemp !== null && (
|
||||
<div className="text-xs whitespace-nowrap">
|
||||
<div>{e.WetterTemp} °C</div>
|
||||
<div>{Math.round(e.WetterFeuchte ?? 0)} %</div>
|
||||
<div>{Math.round(e.WetterDruck ?? 0)} hPa</div>
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
<td className={`${cell} text-center whitespace-nowrap print:hidden`}>
|
||||
<button
|
||||
onClick={() => onEdit(e)}
|
||||
|
||||
Reference in New Issue
Block a user