responsive
This commit is contained in:
@@ -351,3 +351,40 @@ textarea::placeholder {
|
|||||||
strong {
|
strong {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* استایلهای ریسپانسیو برای محتوای ایمیل */
|
||||||
|
.email-content-container {
|
||||||
|
max-width: 100%;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.email-content-container table {
|
||||||
|
width: 100% !important;
|
||||||
|
border-collapse: collapse;
|
||||||
|
table-layout: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.email-content-container td,
|
||||||
|
.email-content-container th {
|
||||||
|
word-wrap: break-word !important;
|
||||||
|
overflow-wrap: break-word !important;
|
||||||
|
padding: 8px !important;
|
||||||
|
font-size: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* در حالت موبایل */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.email-content-container table {
|
||||||
|
min-width: 100%;
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.email-content-container td,
|
||||||
|
.email-content-container th {
|
||||||
|
max-width: 120px !important;
|
||||||
|
padding: 4px !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
"spam": "هرزنامه ها",
|
"spam": "هرزنامه ها",
|
||||||
"setting": "تنظیمات",
|
"setting": "تنظیمات",
|
||||||
"logout": "خروج",
|
"logout": "خروج",
|
||||||
"new_message": "پیام جدید"
|
"new_message": "پیام جدید",
|
||||||
|
"settings": "تنظیمات"
|
||||||
},
|
},
|
||||||
"header": {
|
"header": {
|
||||||
"search": "جستجو",
|
"search": "جستجو",
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ const DetailEmail: FC = () => {
|
|||||||
<div className='xl:mt-8 mt-3 text-[13px] leading-7 font-light'>
|
<div className='xl:mt-8 mt-3 text-[13px] leading-7 font-light'>
|
||||||
{messageDetail.html && messageDetail.html.length > 0 ? (
|
{messageDetail.html && messageDetail.html.length > 0 ? (
|
||||||
<div
|
<div
|
||||||
className='email-content-container border border-gray-200 rounded-lg p-4 overflow-hidden'
|
className='email-content-container border border-gray-200 rounded-lg p-4 overflow-x-auto overflow-y-hidden'
|
||||||
style={{
|
style={{
|
||||||
direction: detectTextDirection(messageDetail.html.join(''))
|
direction: detectTextDirection(messageDetail.html.join(''))
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { FC } from 'react'
|
import { FC } from 'react'
|
||||||
import LogoImage from '../assets/images/logo.svg'
|
import LogoImage from '../assets/images/logo.svg'
|
||||||
import { Add, ArchiveTick, DirectInbox, DirectSend, Edit, InfoCircle, Logout, Star1, Trash } from 'iconsax-react'
|
import { Add, ArchiveTick, DirectInbox, DirectSend, Edit, InfoCircle, Logout, Star1, Trash, Setting2 } from 'iconsax-react'
|
||||||
import SideBarItem from './SideBarItem'
|
import SideBarItem from './SideBarItem'
|
||||||
|
import { Paths } from '@/utils/Paths'
|
||||||
import { useLocation } from 'react-router-dom'
|
import { useLocation } from 'react-router-dom'
|
||||||
import { useSharedStore } from './store/sharedStore'
|
import { useSharedStore } from './store/sharedStore'
|
||||||
import { clx } from '../helpers/utils'
|
import { clx } from '../helpers/utils'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { Paths } from '@/utils/Paths'
|
|
||||||
import Button from '@/components/Button'
|
import Button from '@/components/Button'
|
||||||
|
|
||||||
const SideBar: FC = () => {
|
const SideBar: FC = () => {
|
||||||
@@ -114,6 +114,12 @@ const SideBar: FC = () => {
|
|||||||
|
|
||||||
<div className='flex-1 flex flex-col justify-end mt-10 md:mt-14 pb-6 md:pb-8'>
|
<div className='flex-1 flex flex-col justify-end mt-10 md:mt-14 pb-6 md:pb-8'>
|
||||||
<div className='text-xs text-[#8C90A3]'>
|
<div className='text-xs text-[#8C90A3]'>
|
||||||
|
<SideBarItem
|
||||||
|
icon={<Setting2 variant={isActive('settings') ? 'Bold' : 'Outline'} color={isActive('settings') ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
|
||||||
|
title={t('sidebar.settings')}
|
||||||
|
isActive={isActive('settings')}
|
||||||
|
link={Paths.setting}
|
||||||
|
/>
|
||||||
<SideBarItem
|
<SideBarItem
|
||||||
icon={<Logout variant={isActive('logout') ? 'Bold' : 'Outline'} color={isActive('logout') ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
|
icon={<Logout variant={isActive('logout') ? 'Bold' : 'Outline'} color={isActive('logout') ? 'black' : '#8C90A3'} size={iconSizeSideBar} />}
|
||||||
title={t('sidebar.logout')}
|
title={t('sidebar.logout')}
|
||||||
|
|||||||
Reference in New Issue
Block a user