@@ -279,10 +279,10 @@ <h1 class="product-name text-left" id="product-step-name">Produktionsschritt</h1
279279
280280 < section class ="projects ">
281281 < div class ="card-grid mt-2 ">
282- < div class ="project-card light info ">
282+ < div class ="w-100 info ">
283283 < div class ="row d-flex align-items-stretch ">
284- < div class ="col-6 ">
285-
284+ < div class ="col-5 pt-4 pb-4 pe-0 ">
285+ < div class =" project-card light info info-card-border-radius-right-0 " >
286286 < h4 > Info</ h4 >
287287 < div class ="content ">
288288
@@ -319,8 +319,9 @@ <h4>Info</h4>
319319 </ div >
320320 </ div >
321321 </ div >
322+ </ div >
322323
323- < div class ="col-6 ">
324+ < div class ="col-7 ps-0 ">
324325 < div id ="product-step-image-container "
325326 class ="info-card p-0 m-0 w-100 product-image-container shadow-none "
326327 style ="background-image: url('https://smartfarminglab.github.io/data/flasche_stock.jpg'); ">
@@ -337,7 +338,7 @@ <h2 class="section-heading" id="step-description">
337338 </ h2 >
338339 </ div >
339340
340- < div class ="card-grid mt-2 " id ="step-entries ">
341+ < div class ="card-grid mt-4 " id ="step-entries ">
341342
342343 </ div >
343344
@@ -371,6 +372,12 @@ <h2 class="section-heading" id="step-description">
371372
372373 function toggleStepSheet ( ) {
373374 sheetStep . classList . toggle ( "open" ) ;
375+
376+
377+ if ( ! sheetStep . classList . contains ( "open" ) ) {
378+ removePulse ( ) ;
379+ }
380+
374381 }
375382
376383 /* sheet.addEventListener("touchstart", e => {
@@ -408,7 +415,9 @@ <h2 class="section-heading" id="step-description">
408415
409416
410417
411- function showSidebarWithStep ( step ) {
418+ function showSidebarWithStep ( e , step ) {
419+
420+ console . log ( e ) ;
412421
413422 sheetStep . classList . add ( "open" ) ;
414423
@@ -443,14 +452,10 @@ <h2 class="section-heading" id="step-description">
443452
444453<div class="project-card green info" onclick="toogleStepEntry(${ index + 1 } )" id="step-entry-${ index + 1 } -container">
445454 <div class="project-title">Eintrag ${ index + 1 } </div>
446- <div class="content">
447-
448- <div class="toggle-button" style="cursor:pointer;">Hier klicken für mehr Informationen</div>
449-
450- <div class="extra-info hidden" id="step-entry-${ index + 1 } ">
451-
452-
453- <div>
455+ <div class="content">
456+ <div class="toggle-button" style="cursor:pointer;">Hier klicken für mehr Informationen</div>
457+ <div class="extra-info hidden" id="step-entry-${ index + 1 } ">
458+ <div>
454459 <div class="label">
455460 <div class="logo-icon">
456461 <svg xmlns="http://www.w3.org/2000/svg"
@@ -463,7 +468,7 @@ <h2 class="section-heading" id="step-description">
463468
464469 <span>Beschreibung</span>
465470 </div>
466- <span>${ entry . description || "-" } </span>
471+ <span>${ entry . description || "-" } </span>
467472
468473
469474
@@ -488,7 +493,11 @@ <h2 class="section-heading" id="step-description">
488493 entriesContainer . insertAdjacentHTML ( "beforeend" , entryHtml ) ;
489494 } ) ;
490495 } else {
491- entriesContainer . innerHTML = "<p>Keine Einträge vorhanden.</p>" ;
496+ entriesContainer . innerHTML = ` <div class="project-card green">
497+ <div class="project-title">Eintrag</div>
498+ <p class="content">Keine Einträge vorhanden</p>
499+
500+ </div>` ;
492501 }
493502
494503 }
0 commit comments