v1.7.5: UI-Verbesserungen Listenansicht und Zeiteingabe
- Listview: Toolbar-Rahmen #407BFF, Fokus 2px ring-inset #235CC8 - Listview: Pfeil-Buttons Monatsauswahl in #85B7D7 - Listview: Klimawerte werden bei allen-0 ausgeblendet - Zeiteingabe: nur Stunden + Tab setzt Minuten automatisch auf :00 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -123,19 +123,19 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 10, co
|
||||
>
|
||||
<button
|
||||
onClick={() => setMonth((m) => prevMonth(m))}
|
||||
className="px-2 py-1 text-sm rounded-lg bg-gray-200 hover:bg-gray-300"
|
||||
className="px-2 py-1 text-sm rounded-lg bg-[#85B7D7] hover:bg-[#6a9fc5]"
|
||||
>←</button>
|
||||
<input
|
||||
type="month"
|
||||
value={month}
|
||||
max={currentMonth()}
|
||||
onChange={(e) => setMonth(e.target.value > currentMonth() ? currentMonth() : e.target.value)}
|
||||
className="border border-gray-300 rounded-lg px-2 py-1 text-sm"
|
||||
className="border border-[#407BFF] rounded-lg px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#235CC8]"
|
||||
/>
|
||||
<button
|
||||
onClick={() => setMonth((m) => nextMonth(m))}
|
||||
disabled={month >= currentMonth()}
|
||||
className="px-2 py-1 text-sm rounded-lg bg-gray-200 hover:bg-gray-300 disabled:opacity-40 disabled:cursor-not-allowed"
|
||||
className="px-2 py-1 text-sm rounded-lg bg-[#85B7D7] hover:bg-[#6a9fc5] disabled:opacity-40 disabled:cursor-not-allowed"
|
||||
>→</button>
|
||||
{month !== currentMonth() && (
|
||||
<button
|
||||
@@ -150,7 +150,7 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 10, co
|
||||
value={search}
|
||||
onChange={(e) => setSearch(e.target.value)}
|
||||
placeholder="Suche in Bemerkungen, Objekte, BEOs…"
|
||||
className="w-full px-3 py-1.5 pr-8 border border-gray-300 rounded-lg text-sm focus:outline-none focus:border-blue-500"
|
||||
className="w-full px-3 py-1.5 pr-8 border border-[#407BFF] rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[#235CC8]"
|
||||
/>
|
||||
{search ? (
|
||||
<button
|
||||
@@ -164,7 +164,7 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 10, co
|
||||
</div>
|
||||
<button
|
||||
onClick={handlePrint}
|
||||
className="text-sm px-3 py-1.5 bg-gray-200 hover:bg-gray-300 text-gray-700 rounded-lg shrink-0"
|
||||
className="text-sm px-3 py-1.5 bg-[#85B7D7] hover:bg-[#6a9fc5] text-black rounded-lg shrink-0"
|
||||
>🖨 Drucken</button>
|
||||
</div>
|
||||
);
|
||||
@@ -260,7 +260,7 @@ export default function LogbuchList({ kuppel, refreshKey, onEdit, limit = 10, co
|
||||
{!compact && <td className={cell}>{e.Bemerkungen || ''}</td>}
|
||||
{!compact && (
|
||||
<td className={cell}>
|
||||
{e.WetterTemp !== null && (
|
||||
{e.WetterTemp !== null && !(parseFloat(String(e.WetterTemp)) === 0 && parseFloat(String(e.WetterFeuchte ?? 0)) === 0 && parseFloat(String(e.WetterDruck ?? 0)) === 0) && (
|
||||
<div className="text-xs whitespace-nowrap">
|
||||
<div>{e.WetterTemp} °C</div>
|
||||
<div>{Math.round(e.WetterFeuchte ?? 0)} %</div>
|
||||
|
||||
Reference in New Issue
Block a user