summerize + najva script

This commit is contained in:
hamid zarghami
2025-07-26 12:22:00 +03:30
parent cc744ebac9
commit 28911317cd
11 changed files with 33 additions and 18 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ const DefaulModal: FC<Props> = (props: Props) => {
{
props.open && (
<Fragment>
<div style={{ maxWidth: props.width }} className='xl:justify-center xl:items-center items-end flex overflow-x-hidden overflow-y-auto fixed inset-0 z-[60] h-auto top-0 bottom-0 m-auto outline-none focus:outline-none xl:max-w-xl mx-auto'>
<div style={{ maxWidth: props.width }} className='xl:justify-center xl:items-center items-end flex overflow-x-hidden overflow-y-auto fixed inset-0 z-[9999999] h-auto top-0 bottom-0 m-auto outline-none focus:outline-none xl:max-w-xl mx-auto'>
<div className='relative xl:h-full max-h-[80%] bottom-0 left-0 flex xl:items-center sm:h-auto w-full xl:my-6 xl:p-2'>
<div className='border-0 h-auto p-5 lg:min-w-full overflow-y-auto rounded-3xl rounded-b-none xl:rounded-b-3xl relative flex flex-col w-full modalGlass2 outline-none focus:outline-none'>
@@ -46,7 +46,7 @@ const DefaulModal: FC<Props> = (props: Props) => {
</div>
</div>
<div onClick={props.close} className='fixed size-full bg-black/3 top-0 bottom-0 right-0 inset-0 z-50 '></div>
<div onClick={props.close} className='fixed size-full bg-black/65 top-0 bottom-0 right-0 inset-0 z-50 '></div>
</Fragment>
)
}
+1 -1
View File
@@ -77,7 +77,7 @@ const RowActionsDropdown: React.FC<RowActionsDropdownProps> = ({ actions, classN
return createPortal(
<div
ref={dropdownRef}
className="fixed py-1 md:py-2 bg-white rounded-xl md:rounded-2xl shadow-lg z-[9999] min-w-[140px] md:min-w-[150px]"
className="fixed py-1 md:py-2 bg-white rounded-xl md:rounded-2xl shadow-lg z-[5] min-w-[140px] md:min-w-[150px]"
style={{
top: `${position.top}px`,
left: `${position.left}px`,
+6 -6
View File
@@ -139,7 +139,7 @@ const Table = <T extends RowDataType>({
>
{selectable && (
<div
className="flex-shrink-0 relative z-[5]"
className="flex-shrink-0 "
onClick={(e) => e.stopPropagation()}
>
<Checkbox
@@ -149,7 +149,7 @@ const Table = <T extends RowDataType>({
{/* {inlineActions && (
<div
className="flex-shrink-0 flex items-center gap-2 relative z-[5]"
className="flex-shrink-0 flex items-center gap-2 "
onClick={(e) => e.stopPropagation()}
>
{inlineActions(item).map((action, actionIndex) => (
@@ -190,7 +190,7 @@ const Table = <T extends RowDataType>({
{rowActions && (
<div
className="flex-shrink-0 relative z-[5]"
className="flex-shrink-0 "
onClick={(e) => e.stopPropagation()}
>
<RowActionsDropdown actions={rowActions(item)} />
@@ -236,7 +236,7 @@ const Table = <T extends RowDataType>({
>
{selectable && (
<td
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 relative z-[5]"
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 "
onClick={(e) => e.stopPropagation()}
>
<div className='flex items-center gap-3'>
@@ -276,7 +276,7 @@ const Table = <T extends RowDataType>({
))}
{rowActions && (
<td
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 relative z-[5]"
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 "
onClick={(e) => e.stopPropagation()}
>
<RowActionsDropdown actions={rowActions(item)} />
@@ -295,7 +295,7 @@ const Table = <T extends RowDataType>({
<tr>
{selectable && (
<th
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 relative z-[5] first:rounded-tr-2xl md:first:rounded-tr-3xl"
className="px-3 md:px-6 py-3 md:py-4 w-8 md:w-10 first:rounded-tr-2xl md:first:rounded-tr-3xl"
onClick={(e) => e.stopPropagation()}
>
<Checkbox
+12 -5
View File
@@ -8,6 +8,7 @@ import EmailEditor from './EmailEditor'
import EmailAttachments from './EmailAttachments'
import EmailFormActions from './EmailFormActions'
import { useNewMessage } from './hooks/useNewMessage'
import Intelligense from '@/assets/images/intelligense.svg'
const NewMessage: FC = () => {
const { t } = useTranslation('global')
@@ -124,11 +125,17 @@ const NewMessage: FC = () => {
</div>
</div>
<Input
label={t('new_message.subject')}
value={subject}
onChange={(e) => setSubject(e.target.value)}
/>
<div className='flex gap-2 items-end'>
<Input
label={t('new_message.subject')}
value={subject}
onChange={(e) => setSubject(e.target.value)}
/>
<div className='border border-border rounded-xl h-10 px-2 flex items-center justify-center'>
<img src={Intelligense} alt='intelligense' className='w-6' />
</div>
</div>
<div>
<EmailEditor