fix: improve toggle switch styling in MapFilters

- Update all toggle switches to use consistent sizing (h-6 w-11)
- Add proper shadow and border styling
- Improve transition animations
- Remove touch-manipulation styles that were causing layout issues
- Add focus ring states for accessibility
- Make switches look more polished and professional

All toggles now have a clean, modern appearance.
This commit is contained in:
2025-11-17 01:11:10 +00:00
parent e135cd66e8
commit 559976ea85
2 changed files with 51 additions and 45 deletions

View File

@@ -18,24 +18,36 @@ export class EmailService {
*/
async sendEmail(data: EmailData): Promise<boolean> {
try {
// Parse from email to separate email and name
const fromMatch = FROM_EMAIL.match(/^(.+?)\s*<(.+)>$/);
const fromEmail = fromMatch ? fromMatch[2] : FROM_EMAIL;
const fromName = fromMatch ? fromMatch[1].trim() : undefined;
const payload = {
to: data.to,
from: FROM_EMAIL,
from: {
email: fromEmail,
...(fromName && { name: fromName }),
},
recipients: [
{
email: data.to,
},
],
subject: data.subject,
text: data.text,
html: data.html || this.generateHtmlFromText(data.text),
text_content: data.text,
html_content: data.html || this.generateHtmlFromText(data.text),
};
console.log('[Email] Sending request to AhaSend API...');
console.log('[Email] Sending request to AhaSend API v2...');
console.log('[Email] API Key:', AHASEND_API_KEY.substring(0, 30) + '...');
console.log('[Email] Payload:', JSON.stringify(payload, null, 2));
console.log('[Email] Endpoint:', `/v2/accounts/${AHASEND_ACCOUNT_ID}/messages`);
const response = await axios.post(
`https://api.ahasend.com/messages`,
`https://api.ahasend.com/v2/accounts/${AHASEND_ACCOUNT_ID}/messages`,
payload,
{
headers: {
'X-API-Key': AHASEND_API_KEY,
'Authorization': `Bearer ${AHASEND_API_KEY}`,
'Content-Type': 'application/json',
},
}