feat: KVZ Button für User sichtbar wenn aktiviert ist
This commit is contained in:
@@ -165,7 +165,10 @@ const KVZChartView: React.FC<KVZChartViewProps> = ({
|
||||
Anzeigen
|
||||
</button>
|
||||
</div>
|
||||
<div className="flex items-center justify-end" style={{ width: "12rem" }}>
|
||||
<div
|
||||
className="flex items-center justify-end"
|
||||
style={{ width: "12rem" }}
|
||||
>
|
||||
<FallSensors slotIndex={slotIndex} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -211,8 +211,7 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
|
||||
//--------------------------------------
|
||||
|
||||
return (
|
||||
<div style={{ width: "100%", height: isFullScreen ? "90%" : "28rem" }}>
|
||||
|
||||
<div style={{ width: "100%", height: isFullScreen ? "90%" : "28rem" }}>
|
||||
{tdrChartData.length === 0 ? (
|
||||
<div className="flex items-center justify-center h-full text-gray-500 italic">
|
||||
⚠️ Keine Daten verfügbar für diesen Slot
|
||||
|
||||
@@ -262,7 +262,8 @@ const TDRChartActionBar: React.FC = () => {
|
||||
"px-3 h-8 cursor-pointer rounded-sm m-0.5 flex items-center justify-start transition-colors text-[13px]";
|
||||
if (selected)
|
||||
return `${base} dropdown-option-active font-medium`;
|
||||
if (active) return `${base} dropdown-option-hover`;
|
||||
if (active)
|
||||
return `${base} dropdown-option-hover`;
|
||||
return `${base}`;
|
||||
}}
|
||||
>
|
||||
@@ -296,7 +297,9 @@ const TDRChartActionBar: React.FC = () => {
|
||||
<div className="w-2/3 max-w-xl h-3 bg-white/20 rounded overflow-hidden shadow-inner">
|
||||
<div
|
||||
className="h-full bg-accent transition-all ease-linear"
|
||||
style={{ width: `${(tdrProgress / TDR_TOTAL_DURATION) * 100}%` }}
|
||||
style={{
|
||||
width: `${(tdrProgress / TDR_TOTAL_DURATION) * 100}%`,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user