Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/app/chatbot-widget/chatbot-widget.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
.chatbox {
position: fixed;
bottom: 2%;
right: 2%;
left: 2%;
}

/* CONTENT IS CLOSE */
.chatbox__support {
position: fixed;
bottom: 120px; /* Spostato più in alto per evitare il pulsante */
right: 20px; /* Allineato con il pulsante */
left: 20px; /* Allineato con il pulsante */
width: 80vw;
max-width: 400px;
height: 70vh;
Expand All @@ -61,7 +61,7 @@
.chatbox__button {
position: fixed;
bottom: 55px;
right: 20px;
left: 20px;
z-index: 999;
}

Expand Down Expand Up @@ -224,7 +224,7 @@
width: 100vw;
height: 50vh;
bottom: 0;
right: 0;
left: 0;
border-radius: 20px;
}
}
}
4 changes: 2 additions & 2 deletions src/app/chatbot-widget/chatbot-widget.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h4 class="chatbox__heading--header">DOME support</h4>
}

<!-- Wrapper -->
<div class="fixed bottom-9 md:bottom-[55px] right-5 z-[999]" (click)="toggleState()">
<div class="fixed bottom-9 md:bottom-[55px] left-5 z-[999]" (click)="toggleState()">
<!-- Button -->
<button
class="w-[60px] h-[60px] bg-[var(--secondary-dark-blue)] border-none rounded-full shadow-[0_2px_10px_rgba(0,0,0,0.3)] cursor-pointer transition-transform duration-300 flex items-center justify-center hover:scale-105 p-0"
Expand All @@ -46,4 +46,4 @@ <h4 class="chatbox__heading--header">DOME support</h4>
</div>

</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,13 @@
{{invoice?.billDate | date:'EEEE, dd/MM/yy, HH:mm'}}
</td>
<td class="px-6 py-4 text-center align-middle">
{{invoice?.billNo}}
@if(role==sellerRole){
@if (editingIndex === idx) {
<input [(ngModel)]="editableInvoiceName" type="text" id="invoicename"
class="mb-2 border-gray-300 dark:border-secondary-200 bg-gray-50 dark:bg-secondary-300 border
dark:text-white text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500
block w-full p-2.5" />
} @else {
{{invoice?.billNo}}
}
}@else{
{{invoice?.billNo}}
@if (role == sellerRole && editingIndex === idx) {
<input [(ngModel)]="editableInvoiceName" type="text" id="invoicename"
class="mb-2 border-gray-300 dark:border-secondary-200 bg-gray-50 dark:bg-secondary-300 border
dark:text-white text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500
block w-full p-2.5" />
} @else {
{{ invoice?.billNo }}
}
</td>
<td class="md:table-cell px-6 py-4 text-center align-middle">
Expand All @@ -105,15 +100,15 @@
@if(role==sellerRole){
@if (editingIndex === idx) {
<!-- Save button -->
<button (click)="saveInvoice(idx, invoice);" type="button"
class="text-white bg-green-500 hover:bg-green-700 focus:ring-4 focus:outline-none
<button (click)="saveInvoice(idx, invoice);" type="button"
class="text-white bg-green-500 hover:bg-green-700 focus:ring-4 focus:outline-none
focus:ring-green-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center me-2">
<fa-icon [icon]="faSave" class="text-[18px] text-white align-middle"></fa-icon>
</button>
} @else {
<!-- Edit button -->
<button (click)="editInvoice(idx, invoice);" type="button"
class="text-white bg-primary-100 hover:bg-blue-800 focus:ring-4 focus:outline-none
<button (click)="editInvoice(idx, invoice);" type="button"
class="text-white bg-primary-100 hover:bg-blue-800 focus:ring-4 focus:outline-none
focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center me-2">
<fa-icon [icon]="faEdit" class="text-[18px] text-white align-middle"></fa-icon>
</button>
Expand Down
Loading