11@if (infoRow()){
2- < div
3- class ="fixed inset-0 z-10 w-full h-full bg-zinc-900 opacity-45 "
4- (click) ="closeModal() "
5- > </ div >
6- < dialog
7- [open] ="infoRow()?.isOpen "
8- class ="fixed dialog flex inset-0 p-5 max-w-[60vw] z-20 min-h-[30%] min-w-[40vw] rounded-3xl shadow bg-zinc-700 "
9- >
2+ < div class ="fixed inset-0 z-10 w-full h-full bg-zinc-900 opacity-45 " (click) ="closeModal() "> </ div >
3+ < dialog [open] ="infoRow()?.isOpen "
4+ class ="fixed dialog flex inset-0 p-5 max-w-[60vw] z-20 min-h-[30%] min-w-[40vw] rounded-3xl shadow bg-zinc-700 ">
105 < div class ="flex-1 ">
116 < div class ="flex mb-5 ">
127 < div class ="grid ">
138 @if(isEditingName()){
149 < div class ="relative ">
15- < input
16- addfocus
17- class ="px-4 py-3 text-lg font-bold rounded-3xl bg-zinc-600 focus:outline-none "
18- type ="text "
19- (dblclick) ="handlerEditName() "
20- (change) ="changeNameHandler() "
21- [formControl] ="inputEditName "
22- />
23- < fa-icon
24- (click) ="handlerEditName() "
25- class ="absolute p-1 cursor-pointer top-3 end-3 hover:text-red-600 "
26- [icon] ="faXmark "
27- > </ fa-icon >
10+ < input addfocus class ="px-4 py-3 text-lg font-bold rounded-3xl bg-zinc-600 focus:outline-none " type ="text "
11+ (dblclick) ="handlerEditName() " (change) ="changeNameHandler() " [formControl] ="inputEditName " />
12+ < fa-icon (click) ="handlerEditName() " class ="absolute p-1 cursor-pointer top-3 end-3 hover:text-red-600 "
13+ [icon] ="faXmark "> </ fa-icon >
2814 </ div >
2915
3016 }@else {
3117 < div class ="flex items-start justify-start group/title ">
32- < h3
33- (dblclick) ="handlerEditName() "
34- class ="px-1 py-3 text-lg font-bold text-zinc-200 "
35- >
36- {{ name() }}
18+ < h3 (dblclick) ="handlerEditName() " class ="px-1 py-3 text-lg font-bold text-zinc-200 ">
19+ {{ name() }} < fa-icon
20+ class ="hidden duration-150 cursor-pointer size-2 text-zinc-400 hover:text-zinc-100 group-hover/title:inline "
21+ (click) ="handlerEditName() " [icon] ="faPenToSquare " />
3722 </ h3 >
38- < fa-icon
39- class ="hidden cursor-pointer hover:text-zinc-300 group-hover/title:inline "
40- (click) ="handlerEditName() "
41- [icon] ="faPenToSquare "
42- />
4323 </ div >
44-
4524 }
4625 < p class ="text-sm text-zinc-400 "> in list {{ infoRow()?.list }}</ p >
4726 </ div >
4827 </ div >
4928 < section class ="grid w-full gap-y-4 group group/dsc ">
50- < div class ="grid mb-5 ">
51- < div class ="flex items-start justify-start gap-1 ">
52- < h3 class ="text-lg font-semibold text-zinc-300 "> Description</ h3 >
53- < fa-icon
54- (click) ="handlerEditDescription() "
55- [icon] ="faPenToSquare "
56- class ="hidden duration-100 cursor-pointer group-hover/dsc:inline text-zinc-200 hover:text-zinc-500 "
57- />
58- </ div >
5929
60- @if (isEditingDescription()) {
61- < div class ="relative ">
62- < textarea
63- name =""
64- addfocus
65- (dblclick) ="handlerEditDescription() "
66- [formControl] ="descriptionInput "
67- placeholder ="Add Info "
68- maxlength ="125 "
69- (keydown.enter) ="editDescription() "
70- sentences
71- class ="w-full h-full px-1 py-3 mx-auto mt-3 resize-none bg-zinc-600 rounded-3xl focus:outline-none "
72- >
30+ < div class ="flex items-start justify-start gap-1 ">
31+ < h3 class ="text-lg font-semibold text-zinc-300 "> Description</ h3 >
32+ < fa-icon (click) ="handlerEditDescription() " [icon] ="faPenToSquare "
33+ class ="hidden duration-100 cursor-pointer group-hover/dsc:inline text-zinc-200 hover:text-zinc-500 " />
34+ </ div >
35+
36+ @if (isEditingDescription()) {
37+ < div class ="relative ">
38+ < textarea name ="" addfocus (dblclick) ="handlerEditDescription() " [formControl] ="descriptionInput "
39+ placeholder ="Add Info " maxlength ="125 " (keydown.enter) ="editDescription() " sentences
40+ class ="w-full h-full px-2 py-3 mx-auto mt-3 resize-none bg-zinc-600 rounded-3xl focus:outline-none ">
7341 </ textarea >
74- < fa-icon
75- [icon] ="faXmark "
76- class ="absolute duration-150 cursor-pointer end-5 top-5 hover:text-red-500 "
77- (click) ="handlerEditDescription() "
78- />
79- </ div >
42+ < fa-icon [icon] ="faXmark " class ="absolute duration-150 cursor-pointer end-5 top-5 hover:text-red-500 "
43+ (click) ="handlerEditDescription() " />
44+ </ div >
8045
81- } @else if (description().length < = 0) {
82- < button
83- (click) ="handlerEditDescription() "
84- class ="p-2 hover:bg-zinc-600 rounded-3xl "
85- >
86- Add a more detailed description...
46+ } @else if (description().length < = 0) { < button (click) ="handlerEditDescription() "
47+ class ="p-2 hover:bg-zinc-600 rounded-3xl w-fit ">
48+ Add a more detailed description...
8749 </ button >
8850 } @else {
8951 < div class ="relative group/dsc " (dblclick) ="handlerEditDescription() ">
@@ -93,7 +55,7 @@ <h3 class="text-lg font-semibold text-zinc-300">Description</h3>
9355 </ div >
9456
9557 }
96- </ div >
58+
9759 </ section >
9860 </ div >
9961</ dialog >
0 commit comments