Remove Tailwind CSS and all remaining references (#2413)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
committed by
acx10
co-authored by
acx10
parent
5d9e535a14
commit
a0870cac86
+12
-12
@@ -96,7 +96,7 @@
|
||||
|
||||
<ng-template pTemplate="body" let-provider>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-radioButton
|
||||
name="defaultProvider"
|
||||
[value]="provider.id"
|
||||
@@ -107,10 +107,10 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.name" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.name" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<div class="flex align-items-center gap-2">
|
||||
<div class="provider-name-cell">
|
||||
<span>
|
||||
{{ provider.name }}
|
||||
@if (provider.shared) {
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.host" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.host" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.host }}</span>
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="number" [(ngModel)]="provider.port" class="p-inputtext w-full" size="small"/>
|
||||
<input type="number" [(ngModel)]="provider.port" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.port }}</span>
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.username" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.username" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.username }}</span>
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input [(ngModel)]="provider.password" class="p-inputtext w-full" size="small"/>
|
||||
<input [(ngModel)]="provider.password" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span class="password-hidden">Hidden</span>
|
||||
@@ -159,14 +159,14 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.fromAddress }}</span>
|
||||
}
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.auth"
|
||||
[binary]="true"
|
||||
@@ -174,7 +174,7 @@
|
||||
</p-checkbox>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.startTls"
|
||||
[binary]="true"
|
||||
@@ -183,7 +183,7 @@
|
||||
</td>
|
||||
|
||||
@if (isAdmin) {
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.shared"
|
||||
[binary]="true"
|
||||
@@ -208,7 +208,7 @@
|
||||
</p-button>
|
||||
}
|
||||
@if (provider.isEditing) {
|
||||
<div class="flex gap-1">
|
||||
<div class="edit-actions">
|
||||
<p-button
|
||||
icon="pi pi-check"
|
||||
severity="success"
|
||||
|
||||
+19
@@ -202,3 +202,22 @@
|
||||
vertical-align: text-bottom;
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.cell-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.input-full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.provider-name-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.edit-actions {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
+3
-3
@@ -73,7 +73,7 @@
|
||||
|
||||
<td>
|
||||
@if (recipient.isEditing) {
|
||||
<input type="email" [(ngModel)]="recipient.email" class="p-inputtext w-full" size="small"/>
|
||||
<input type="email" [(ngModel)]="recipient.email" class="p-inputtext full-width" size="small"/>
|
||||
}
|
||||
@if (!recipient.isEditing) {
|
||||
<span>{{ recipient.email }}</span>
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
<td>
|
||||
@if (recipient.isEditing) {
|
||||
<input type="text" [(ngModel)]="recipient.name" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="recipient.name" class="p-inputtext full-width" size="small"/>
|
||||
}
|
||||
@if (!recipient.isEditing) {
|
||||
<span>{{ recipient.name }}</span>
|
||||
@@ -102,7 +102,7 @@
|
||||
</p-button>
|
||||
}
|
||||
@if (recipient.isEditing) {
|
||||
<div class="flex gap-1">
|
||||
<div class="edit-actions">
|
||||
<p-button
|
||||
icon="pi pi-check"
|
||||
severity="success"
|
||||
|
||||
+13
@@ -169,3 +169,16 @@
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edit-actions {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="w-full h-[calc(100dvh-10.5rem)] md:h-[calc(100dvh-11.65rem)] overflow-y-auto border rounded-lg p-4 enclosing-container">
|
||||
<div class="email-settings-container enclosing-container">
|
||||
<div class="settings-header">
|
||||
<h2 class="settings-title">
|
||||
<i class="pi pi-envelope"></i>
|
||||
@@ -11,11 +11,11 @@
|
||||
</div>
|
||||
|
||||
@if (hasPermission) {
|
||||
<div class="pb-8">
|
||||
<div class="provider-section">
|
||||
<app-email-v2-provider></app-email-v2-provider>
|
||||
</div>
|
||||
<p-divider></p-divider>
|
||||
<div class="pt-4">
|
||||
<div class="recipient-section">
|
||||
<app-email-v2-recipient></app-email-v2-recipient>
|
||||
</div>
|
||||
} @else {
|
||||
|
||||
@@ -1,6 +1,23 @@
|
||||
.enclosing-container {
|
||||
border-color: var(--p-content-border-color);
|
||||
.email-settings-container {
|
||||
width: 100%;
|
||||
height: calc(100dvh - 10.5rem);
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1rem;
|
||||
background: var(--p-content-background);
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: calc(100dvh - 11.65rem);
|
||||
}
|
||||
}
|
||||
|
||||
.provider-section {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.recipient-section {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.settings-header {
|
||||
|
||||
Reference in New Issue
Block a user