mobile optimization
This commit is contained in:
parent
1030103b7a
commit
49aa47ab10
|
|
@ -20,23 +20,25 @@
|
||||||
@click="showComposer = true"
|
@click="showComposer = true"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="flat"
|
variant="flat"
|
||||||
prepend-icon="mdi-email-edit"
|
:prepend-icon="!mobile ? 'mdi-email-edit' : undefined"
|
||||||
|
:icon="mobile ? 'mdi-email-edit' : undefined"
|
||||||
|
:size="mobile ? 'default' : 'default'"
|
||||||
>
|
>
|
||||||
Compose Email
|
<span v-if="!mobile">Compose Email</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
@click="loadEmailThread"
|
@click="loadEmailThread"
|
||||||
variant="text"
|
variant="text"
|
||||||
icon="mdi-refresh"
|
icon="mdi-refresh"
|
||||||
:loading="isRefreshing"
|
:loading="isRefreshing"
|
||||||
size="small"
|
:size="mobile ? 'small' : 'small'"
|
||||||
>
|
>
|
||||||
<v-tooltip activator="parent">Refresh Emails</v-tooltip>
|
<v-tooltip activator="parent">Refresh Emails</v-tooltip>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
<v-btn-group v-if="!mobile" variant="text" density="compact">
|
||||||
<v-btn
|
<v-btn
|
||||||
@click="reconnectEmail"
|
@click="reconnectEmail"
|
||||||
variant="text"
|
|
||||||
size="small"
|
size="small"
|
||||||
prepend-icon="mdi-connection"
|
prepend-icon="mdi-connection"
|
||||||
>
|
>
|
||||||
|
|
@ -44,43 +46,64 @@
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
@click="disconnectEmail"
|
@click="disconnectEmail"
|
||||||
variant="text"
|
|
||||||
size="small"
|
size="small"
|
||||||
color="error"
|
color="error"
|
||||||
prepend-icon="mdi-logout"
|
prepend-icon="mdi-logout"
|
||||||
>
|
>
|
||||||
Disconnect
|
Disconnect
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
</v-btn-group>
|
||||||
|
<v-menu v-else>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-btn
|
||||||
|
v-bind="props"
|
||||||
|
icon="mdi-dots-vertical"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<v-list density="compact">
|
||||||
|
<v-list-item @click="reconnectEmail" prepend-icon="mdi-connection">
|
||||||
|
<v-list-item-title>Reconnect</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
|
<v-list-item @click="disconnectEmail" prepend-icon="mdi-logout" base-color="error">
|
||||||
|
<v-list-item-title>Disconnect</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
|
</v-menu>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Email Thread List -->
|
<!-- Email Thread List -->
|
||||||
<div v-if="emailThreads.length > 0" class="email-threads">
|
<div v-if="emailThreads.length > 0" class="email-threads">
|
||||||
<div class="text-subtitle-1 mb-3">Email History</div>
|
<div class="text-subtitle-1 mb-3">Email History</div>
|
||||||
<v-timeline side="end" density="comfortable">
|
<v-timeline :side="mobile ? 'end' : 'end'" :density="mobile ? 'compact' : 'comfortable'">
|
||||||
<v-timeline-item
|
<v-timeline-item
|
||||||
v-for="(email, index) in emailThreads"
|
v-for="(email, index) in emailThreads"
|
||||||
:key="index"
|
:key="index"
|
||||||
:dot-color="email.direction === 'sent' ? 'primary' : 'success'"
|
:dot-color="email.direction === 'sent' ? 'primary' : 'success'"
|
||||||
:icon="email.direction === 'sent' ? 'mdi-email-send' : 'mdi-email-receive'"
|
:icon="email.direction === 'sent' ? 'mdi-email-send' : 'mdi-email-receive'"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
>
|
>
|
||||||
<template v-slot:opposite>
|
<template v-slot:opposite v-if="!mobile">
|
||||||
<div class="text-caption">
|
<div class="text-caption">
|
||||||
{{ formatDate(email.timestamp) }}
|
{{ formatDate(email.timestamp) }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-card variant="outlined">
|
<v-card variant="outlined" :density="mobile ? 'compact' : 'default'">
|
||||||
<v-card-subtitle class="d-flex align-center">
|
<v-card-subtitle class="d-flex align-center justify-space-between">
|
||||||
<span class="text-body-2">
|
<span class="text-body-2">
|
||||||
{{ email.direction === 'sent' ? 'To' : 'From' }}:
|
{{ email.direction === 'sent' ? 'To' : 'From' }}:
|
||||||
{{ email.direction === 'sent' ? email.to : email.from }}
|
{{ email.direction === 'sent' ? email.to : email.from }}
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="mobile" class="text-caption text-grey">
|
||||||
|
{{ formatDate(email.timestamp) }}
|
||||||
|
</span>
|
||||||
</v-card-subtitle>
|
</v-card-subtitle>
|
||||||
|
|
||||||
<v-card-text>
|
<v-card-text :class="mobile ? 'pa-3' : ''">
|
||||||
<div class="text-body-2 font-weight-medium mb-2">{{ email.subject }}</div>
|
<div class="text-body-2 font-weight-medium mb-2">{{ email.subject }}</div>
|
||||||
<div class="email-content" v-html="formatEmailContent(email.content)"></div>
|
<div class="email-content" :class="mobile ? 'email-content-mobile' : ''" v-html="formatEmailContent(email.content)"></div>
|
||||||
|
|
||||||
<!-- Attachments -->
|
<!-- Attachments -->
|
||||||
<div v-if="email.attachments && email.attachments.length > 0" class="mt-3">
|
<div v-if="email.attachments && email.attachments.length > 0" class="mt-3">
|
||||||
|
|
@ -111,8 +134,14 @@
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
<!-- Email Composer Dialog -->
|
<!-- Email Composer Dialog -->
|
||||||
<v-dialog v-model="showComposer" max-width="800" persistent>
|
<v-dialog
|
||||||
<v-card>
|
v-model="showComposer"
|
||||||
|
:max-width="mobile ? '100%' : '800'"
|
||||||
|
:fullscreen="mobile"
|
||||||
|
persistent
|
||||||
|
:transition="mobile ? 'dialog-bottom-transition' : 'dialog-transition'"
|
||||||
|
>
|
||||||
|
<v-card :max-height="mobile ? '100vh' : undefined">
|
||||||
<v-card-title class="d-flex align-center">
|
<v-card-title class="d-flex align-center">
|
||||||
<v-icon class="mr-2">mdi-email-edit</v-icon>
|
<v-icon class="mr-2">mdi-email-edit</v-icon>
|
||||||
Compose Email
|
Compose Email
|
||||||
|
|
@ -139,42 +168,48 @@
|
||||||
v-model="emailDraft.subject"
|
v-model="emailDraft.subject"
|
||||||
label="Subject"
|
label="Subject"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="comfortable"
|
:density="mobile ? 'compact' : 'comfortable'"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Quick Actions -->
|
<!-- Quick Actions -->
|
||||||
<div class="mb-3">
|
<div class="mb-3" :class="mobile ? 'd-flex flex-column align-start' : ''">
|
||||||
<span class="text-body-2 mr-2">Quick Insert:</span>
|
<span class="text-body-2" :class="mobile ? 'mb-2' : 'mr-2'">Quick Insert:</span>
|
||||||
|
<div :class="mobile ? 'd-flex gap-2' : ''">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="hasEOI"
|
v-if="hasEOI"
|
||||||
@click="insertEOILink"
|
@click="insertEOILink"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
prepend-icon="mdi-file-document"
|
:prepend-icon="mobile ? undefined : 'mdi-file-document'"
|
||||||
|
:class="!mobile ? '' : ''"
|
||||||
>
|
>
|
||||||
EOI Link
|
<v-icon v-if="mobile" size="small">mdi-file-document</v-icon>
|
||||||
|
EOI{{ mobile ? '' : ' Link' }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="hasBerth"
|
v-if="hasBerth"
|
||||||
@click="insertBerthInfo"
|
@click="insertBerthInfo"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
prepend-icon="mdi-anchor"
|
:prepend-icon="mobile ? undefined : 'mdi-anchor'"
|
||||||
class="ml-2"
|
:class="!mobile ? 'ml-2' : ''"
|
||||||
>
|
>
|
||||||
Berth Info
|
<v-icon v-if="mobile" size="small">mdi-anchor</v-icon>
|
||||||
|
Berth{{ mobile ? '' : ' Info' }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Email Content -->
|
<!-- Email Content -->
|
||||||
<v-textarea
|
<v-textarea
|
||||||
v-model="emailDraft.content"
|
v-model="emailDraft.content"
|
||||||
label="Email Content"
|
label="Email Content"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
rows="12"
|
:rows="mobile ? 8 : 12"
|
||||||
placeholder="Write your email here..."
|
placeholder="Write your email here..."
|
||||||
ref="contentTextarea"
|
ref="contentTextarea"
|
||||||
|
:density="mobile ? 'compact' : 'default'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Signature Settings -->
|
<!-- Signature Settings -->
|
||||||
|
|
@ -237,14 +272,19 @@
|
||||||
<div class="text-body-2 mb-2">Attachments</div>
|
<div class="text-body-2 mb-2">Attachments</div>
|
||||||
|
|
||||||
<!-- Attachment Options -->
|
<!-- Attachment Options -->
|
||||||
<v-btn-toggle v-model="attachmentMode" mandatory class="mb-3">
|
<v-btn-toggle
|
||||||
<v-btn value="upload" size="small">
|
v-model="attachmentMode"
|
||||||
<v-icon start>mdi-upload</v-icon>
|
mandatory
|
||||||
Upload Files
|
class="mb-3"
|
||||||
|
:density="mobile ? 'compact' : 'default'"
|
||||||
|
>
|
||||||
|
<v-btn value="upload" :size="mobile ? 'x-small' : 'small'">
|
||||||
|
<v-icon :start="!mobile" :size="mobile ? 'small' : 'default'">mdi-upload</v-icon>
|
||||||
|
<span :class="mobile ? 'text-caption' : ''">{{ mobile ? 'Upload' : 'Upload Files' }}</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn value="browse" size="small">
|
<v-btn value="browse" :size="mobile ? 'x-small' : 'small'">
|
||||||
<v-icon start>mdi-folder-open</v-icon>
|
<v-icon :start="!mobile" :size="mobile ? 'small' : 'default'">mdi-folder-open</v-icon>
|
||||||
Browse Files
|
<span :class="mobile ? 'text-caption' : ''">{{ mobile ? 'Browse' : 'Browse Files' }}</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-btn-toggle>
|
</v-btn-toggle>
|
||||||
|
|
||||||
|
|
@ -254,11 +294,11 @@
|
||||||
v-model="emailDraft.attachments"
|
v-model="emailDraft.attachments"
|
||||||
label="Select files to attach"
|
label="Select files to attach"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="comfortable"
|
:density="mobile ? 'compact' : 'comfortable'"
|
||||||
multiple
|
multiple
|
||||||
chips
|
chips
|
||||||
prepend-icon="mdi-paperclip"
|
prepend-icon="mdi-paperclip"
|
||||||
show-size
|
:show-size="!mobile"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Browse Mode -->
|
<!-- Browse Mode -->
|
||||||
|
|
@ -267,10 +307,11 @@
|
||||||
@click="openFileBrowser"
|
@click="openFileBrowser"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
block
|
block
|
||||||
size="large"
|
:size="mobile ? 'default' : 'large'"
|
||||||
prepend-icon="mdi-folder-open"
|
:prepend-icon="!mobile ? 'mdi-folder-open' : undefined"
|
||||||
|
:icon="mobile ? 'mdi-folder-open' : undefined"
|
||||||
>
|
>
|
||||||
Browse Files
|
<span v-if="!mobile">Browse Files</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -313,8 +354,13 @@
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<!-- File Browser Dialog -->
|
<!-- File Browser Dialog -->
|
||||||
<v-dialog v-model="showFileBrowser" max-width="1200" height="80vh">
|
<v-dialog
|
||||||
<v-card height="80vh">
|
v-model="showFileBrowser"
|
||||||
|
:max-width="mobile ? '100%' : '1200'"
|
||||||
|
:fullscreen="mobile"
|
||||||
|
:transition="mobile ? 'dialog-bottom-transition' : 'dialog-transition'"
|
||||||
|
>
|
||||||
|
<v-card :height="mobile ? '100vh' : '80vh'">
|
||||||
<v-card-title class="d-flex align-center">
|
<v-card-title class="d-flex align-center">
|
||||||
<v-icon class="mr-2">mdi-folder-open</v-icon>
|
<v-icon class="mr-2">mdi-folder-open</v-icon>
|
||||||
Select Files from Browser
|
Select Files from Browser
|
||||||
|
|
@ -362,6 +408,7 @@ const emit = defineEmits<{
|
||||||
'update': [];
|
'update': [];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const { mobile } = useDisplay();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const showComposer = ref(false);
|
const showComposer = ref(false);
|
||||||
const isSending = ref(false);
|
const isSending = ref(false);
|
||||||
|
|
@ -802,6 +849,11 @@ const cancelFileBrowser = () => {
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.email-content-mobile {
|
||||||
|
max-height: 150px;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
.email-content :deep(p) {
|
.email-content :deep(p) {
|
||||||
margin: 0 0 0.5em 0;
|
margin: 0 0 0.5em 0;
|
||||||
}
|
}
|
||||||
|
|
@ -816,4 +868,10 @@ const cancelFileBrowser = () => {
|
||||||
max-height: 600px;
|
max-height: 600px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.email-threads {
|
||||||
|
max-height: 400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,11 @@
|
||||||
:loading="isGenerating"
|
:loading="isGenerating"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="flat"
|
variant="flat"
|
||||||
prepend-icon="mdi-file-document-plus"
|
:prepend-icon="!mobile ? 'mdi-file-document-plus' : undefined"
|
||||||
|
:icon="mobile ? 'mdi-file-document-plus' : undefined"
|
||||||
|
:size="mobile ? 'default' : 'default'"
|
||||||
>
|
>
|
||||||
Generate EOI
|
<span v-if="!mobile">Generate EOI</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -47,42 +49,45 @@
|
||||||
@click="showUploadDialog = true"
|
@click="showUploadDialog = true"
|
||||||
:variant="hasEOI ? 'tonal' : 'outlined'"
|
:variant="hasEOI ? 'tonal' : 'outlined'"
|
||||||
:color="hasEOI ? 'success' : 'primary'"
|
:color="hasEOI ? 'success' : 'primary'"
|
||||||
prepend-icon="mdi-upload"
|
:prepend-icon="!mobile ? 'mdi-upload' : undefined"
|
||||||
:disabled="isUploading"
|
:disabled="isUploading"
|
||||||
size="large"
|
:size="mobile ? 'default' : 'large'"
|
||||||
>
|
>
|
||||||
{{ hasEOI ? 'Upload Signed EOI' : 'Upload EOI Document' }}
|
{{ mobile ? 'Upload EOI' : (hasEOI ? 'Upload Signed EOI' : 'Upload EOI Document') }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- EOI Status Badge -->
|
<!-- EOI Status Badge -->
|
||||||
<div v-if="hasEOI || hasEOIDocuments" class="mb-4 d-flex align-center">
|
<div v-if="hasEOI || hasEOIDocuments" class="mb-4 d-flex align-center flex-wrap">
|
||||||
<v-chip
|
<v-chip
|
||||||
:color="getStatusColor(interest['EOI Status'])"
|
:color="getStatusColor(interest['EOI Status'])"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
prepend-icon="mdi-file-document-check"
|
:prepend-icon="!mobile ? 'mdi-file-document-check' : undefined"
|
||||||
|
:size="mobile ? 'small' : 'default'"
|
||||||
|
class="mb-1"
|
||||||
>
|
>
|
||||||
{{ interest['EOI Status'] }}
|
{{ interest['EOI Status'] }}
|
||||||
</v-chip>
|
</v-chip>
|
||||||
<span v-if="interest['EOI Time Sent']" class="text-caption text-grey-darken-1 ml-3">
|
<span v-if="interest['EOI Time Sent']" class="text-caption text-grey-darken-1 ml-3">
|
||||||
Sent: {{ formatDate(interest['EOI Time Sent']) }}
|
{{ mobile ? '' : 'Sent: ' }}{{ formatDate(interest['EOI Time Sent']) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Signature Links - Only show if EOI is generated but not uploaded/signed -->
|
<!-- Signature Links - Only show if EOI is generated but not uploaded/signed -->
|
||||||
<v-list v-if="hasEOI && !isEOISigned" density="comfortable">
|
<v-list v-if="hasEOI && !isEOISigned" :density="mobile ? 'compact' : 'comfortable'">
|
||||||
<v-list-item class="mb-2">
|
<v-list-item class="mb-2">
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-avatar color="primary" size="40">
|
<v-avatar color="primary" :size="mobile ? 32 : 40">
|
||||||
<v-icon>mdi-account</v-icon>
|
<v-icon :size="mobile ? 'small' : 'default'">mdi-account</v-icon>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item-title>Client Signature Link</v-list-item-title>
|
<v-list-item-title :class="mobile ? 'text-body-2' : ''">Client Signature Link</v-list-item-title>
|
||||||
<v-list-item-subtitle>{{ interest['Full Name'] }}</v-list-item-subtitle>
|
<v-list-item-subtitle :class="mobile ? 'text-caption' : ''">{{ interest['Full Name'] }}</v-list-item-subtitle>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<v-btn
|
<v-btn
|
||||||
icon="mdi-content-copy"
|
icon="mdi-content-copy"
|
||||||
variant="text"
|
variant="text"
|
||||||
|
:size="mobile ? 'small' : 'default'"
|
||||||
@click="copyLink(interest['Signature Link Client'])"
|
@click="copyLink(interest['Signature Link Client'])"
|
||||||
></v-btn>
|
></v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -90,16 +95,17 @@
|
||||||
|
|
||||||
<v-list-item class="mb-2">
|
<v-list-item class="mb-2">
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-avatar color="success" size="40">
|
<v-avatar color="success" :size="mobile ? 32 : 40">
|
||||||
<v-icon>mdi-account-check</v-icon>
|
<v-icon :size="mobile ? 'small' : 'default'">mdi-account-check</v-icon>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item-title>CC Signature Link</v-list-item-title>
|
<v-list-item-title :class="mobile ? 'text-body-2' : ''">CC Signature Link</v-list-item-title>
|
||||||
<v-list-item-subtitle>Oscar Faragher</v-list-item-subtitle>
|
<v-list-item-subtitle :class="mobile ? 'text-caption' : ''">Oscar Faragher</v-list-item-subtitle>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<v-btn
|
<v-btn
|
||||||
icon="mdi-content-copy"
|
icon="mdi-content-copy"
|
||||||
variant="text"
|
variant="text"
|
||||||
|
:size="mobile ? 'small' : 'default'"
|
||||||
@click="copyLink(interest['Signature Link CC'])"
|
@click="copyLink(interest['Signature Link CC'])"
|
||||||
></v-btn>
|
></v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -107,16 +113,17 @@
|
||||||
|
|
||||||
<v-list-item class="mb-2">
|
<v-list-item class="mb-2">
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-avatar color="secondary" size="40">
|
<v-avatar color="secondary" :size="mobile ? 32 : 40">
|
||||||
<v-icon>mdi-account-tie</v-icon>
|
<v-icon :size="mobile ? 'small' : 'default'">mdi-account-tie</v-icon>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item-title>Developer Signature Link</v-list-item-title>
|
<v-list-item-title :class="mobile ? 'text-body-2' : ''">Developer Signature Link</v-list-item-title>
|
||||||
<v-list-item-subtitle>David Mizrahi</v-list-item-subtitle>
|
<v-list-item-subtitle :class="mobile ? 'text-caption' : ''">David Mizrahi</v-list-item-subtitle>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<v-btn
|
<v-btn
|
||||||
icon="mdi-content-copy"
|
icon="mdi-content-copy"
|
||||||
variant="text"
|
variant="text"
|
||||||
|
:size="mobile ? 'small' : 'default'"
|
||||||
@click="copyLink(interest['Signature Link Developer'])"
|
@click="copyLink(interest['Signature Link Developer'])"
|
||||||
></v-btn>
|
></v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -152,7 +159,7 @@
|
||||||
<!-- Reminder Settings - Only show if EOI is generated but not uploaded/signed -->
|
<!-- Reminder Settings - Only show if EOI is generated but not uploaded/signed -->
|
||||||
<v-divider v-if="hasEOI && !isEOISigned" class="mt-4 mb-4" />
|
<v-divider v-if="hasEOI && !isEOISigned" class="mt-4 mb-4" />
|
||||||
<v-row v-if="hasEOI && !isEOISigned" dense align="center">
|
<v-row v-if="hasEOI && !isEOISigned" dense align="center">
|
||||||
<v-col cols="auto">
|
<v-col :cols="mobile ? 12 : 'auto'">
|
||||||
<v-switch
|
<v-switch
|
||||||
v-model="remindersEnabled"
|
v-model="remindersEnabled"
|
||||||
@update:model-value="updateReminderSettings"
|
@update:model-value="updateReminderSettings"
|
||||||
|
|
@ -161,9 +168,17 @@
|
||||||
density="compact"
|
density="compact"
|
||||||
>
|
>
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
<span class="text-body-2">
|
<span :class="mobile ? 'text-caption' : 'text-body-2'">
|
||||||
Automatic Reminders
|
Automatic Reminders
|
||||||
<v-tooltip activator="parent" location="top">
|
<v-icon
|
||||||
|
v-if="mobile"
|
||||||
|
size="x-small"
|
||||||
|
class="ml-1"
|
||||||
|
@click.stop="showReminderInfo = true"
|
||||||
|
>
|
||||||
|
mdi-information-outline
|
||||||
|
</v-icon>
|
||||||
|
<v-tooltip v-else activator="parent" location="top">
|
||||||
<div style="max-width: 300px">
|
<div style="max-width: 300px">
|
||||||
When enabled, automatic reminders will be sent at 9am and 4pm daily to unsigned recipients
|
When enabled, automatic reminders will be sent at 9am and 4pm daily to unsigned recipients
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -176,7 +191,12 @@
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
<!-- Upload Dialog -->
|
<!-- Upload Dialog -->
|
||||||
<v-dialog v-model="showUploadDialog" max-width="600">
|
<v-dialog
|
||||||
|
v-model="showUploadDialog"
|
||||||
|
:max-width="mobile ? '100%' : '600'"
|
||||||
|
:fullscreen="mobile"
|
||||||
|
:transition="mobile ? 'dialog-bottom-transition' : 'dialog-transition'"
|
||||||
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="d-flex align-center">
|
<v-card-title class="d-flex align-center">
|
||||||
<v-icon class="mr-2" color="primary">mdi-upload</v-icon>
|
<v-icon class="mr-2" color="primary">mdi-upload</v-icon>
|
||||||
|
|
@ -187,26 +207,26 @@
|
||||||
|
|
||||||
<v-divider />
|
<v-divider />
|
||||||
|
|
||||||
<v-card-text class="pa-6">
|
<v-card-text :class="mobile ? 'pa-4' : 'pa-6'">
|
||||||
<div class="text-center mb-6">
|
<div class="text-center" :class="mobile ? 'mb-4' : 'mb-6'">
|
||||||
<v-icon size="80" color="primary" class="mb-4">mdi-file-pdf-box</v-icon>
|
<v-icon :size="mobile ? 60 : 80" color="primary" class="mb-4">mdi-file-pdf-box</v-icon>
|
||||||
<div class="text-h6 mb-2">Choose how to upload your EOI</div>
|
<div :class="mobile ? 'text-body-1 mb-2' : 'text-h6 mb-2'">Choose how to upload your EOI</div>
|
||||||
<div class="text-body-2 text-grey">Upload a signed PDF document</div>
|
<div :class="mobile ? 'text-caption' : 'text-body-2'" class="text-grey">Upload a signed PDF document</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-file-input
|
<v-file-input
|
||||||
v-model="selectedFile"
|
v-model="selectedFile"
|
||||||
label="Drop your PDF here or click to browse"
|
:label="mobile ? 'Select PDF file' : 'Drop your PDF here or click to browse'"
|
||||||
accept=".pdf"
|
accept=".pdf"
|
||||||
prepend-icon=""
|
prepend-icon=""
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="comfortable"
|
:density="mobile ? 'compact' : 'comfortable'"
|
||||||
:rules="[v => !!v || 'Please select a file']"
|
:rules="[v => !!v || 'Please select a file']"
|
||||||
show-size
|
:show-size="!mobile"
|
||||||
class="mt-4"
|
class="mt-4"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend-inner>
|
<template v-slot:prepend-inner>
|
||||||
<v-icon color="primary">mdi-file-pdf-box</v-icon>
|
<v-icon color="primary" :size="mobile ? 'small' : 'default'">mdi-file-pdf-box</v-icon>
|
||||||
</template>
|
</template>
|
||||||
</v-file-input>
|
</v-file-input>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
@ -215,7 +235,7 @@
|
||||||
|
|
||||||
<v-card-actions class="pa-4">
|
<v-card-actions class="pa-4">
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
<v-btn @click="closeUploadDialog" variant="text" size="large">
|
<v-btn @click="closeUploadDialog" variant="text" :size="mobile ? 'default' : 'large'">
|
||||||
Cancel
|
Cancel
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
|
|
@ -224,17 +244,21 @@
|
||||||
@click="handleUpload"
|
@click="handleUpload"
|
||||||
:loading="isUploading"
|
:loading="isUploading"
|
||||||
:disabled="!selectedFile"
|
:disabled="!selectedFile"
|
||||||
size="large"
|
:size="mobile ? 'default' : 'large'"
|
||||||
prepend-icon="mdi-upload"
|
:prepend-icon="!mobile ? 'mdi-upload' : undefined"
|
||||||
>
|
>
|
||||||
Upload EOI
|
Upload{{ mobile ? '' : ' EOI' }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<!-- Delete Confirmation Dialog -->
|
<!-- Delete Confirmation Dialog -->
|
||||||
<v-dialog v-model="showDeleteConfirmDialog" max-width="400">
|
<v-dialog
|
||||||
|
v-model="showDeleteConfirmDialog"
|
||||||
|
:max-width="mobile ? '100%' : '400'"
|
||||||
|
:transition="mobile ? 'dialog-bottom-transition' : 'dialog-transition'"
|
||||||
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="d-flex align-center">
|
<v-card-title class="d-flex align-center">
|
||||||
<v-icon class="mr-2" color="error">mdi-alert</v-icon>
|
<v-icon class="mr-2" color="error">mdi-alert</v-icon>
|
||||||
|
|
@ -271,6 +295,24 @@
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
|
<!-- Mobile Reminder Info Dialog -->
|
||||||
|
<v-dialog v-if="mobile" v-model="showReminderInfo" max-width="300">
|
||||||
|
<v-card>
|
||||||
|
<v-card-title class="text-h6">
|
||||||
|
Automatic Reminders
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
When enabled, automatic reminders will be sent at 9am and 4pm daily to unsigned recipients.
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer />
|
||||||
|
<v-btn color="primary" variant="text" @click="showReminderInfo = false">
|
||||||
|
Got it
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -286,6 +328,7 @@ const emit = defineEmits<{
|
||||||
'update': [];
|
'update': [];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const { mobile } = useDisplay();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const isGenerating = ref(false);
|
const isGenerating = ref(false);
|
||||||
const showUploadDialog = ref(false);
|
const showUploadDialog = ref(false);
|
||||||
|
|
@ -293,6 +336,7 @@ const isUploading = ref(false);
|
||||||
const selectedFile = ref<File | null>(null);
|
const selectedFile = ref<File | null>(null);
|
||||||
const showDeleteConfirmDialog = ref(false);
|
const showDeleteConfirmDialog = ref(false);
|
||||||
const isDeleting = ref(false);
|
const isDeleting = ref(false);
|
||||||
|
const showReminderInfo = ref(false);
|
||||||
|
|
||||||
// Reminder settings
|
// Reminder settings
|
||||||
const remindersEnabled = ref(true);
|
const remindersEnabled = ref(true);
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@
|
||||||
fullscreen
|
fullscreen
|
||||||
hide-overlay
|
hide-overlay
|
||||||
transition="dialog-bottom-transition"
|
transition="dialog-bottom-transition"
|
||||||
|
:scrollable="false"
|
||||||
>
|
>
|
||||||
<v-card>
|
<v-card class="d-flex flex-column" style="height: 100vh;">
|
||||||
<v-toolbar dark color="primary">
|
<v-toolbar dark color="primary">
|
||||||
<v-btn icon dark @click="closeModal">
|
<v-btn icon dark @click="closeModal">
|
||||||
<v-icon>mdi-close</v-icon>
|
<v-icon>mdi-close</v-icon>
|
||||||
|
|
@ -77,7 +78,8 @@
|
||||||
</v-toolbar-items>
|
</v-toolbar-items>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
|
|
||||||
<v-card-text v-if="interest">
|
<v-card-text v-if="interest" class="flex-grow-1 overflow-y-auto pa-0">
|
||||||
|
<div class="pa-4">
|
||||||
<v-stepper
|
<v-stepper
|
||||||
v-show="!mobile"
|
v-show="!mobile"
|
||||||
v-model="currentStep"
|
v-model="currentStep"
|
||||||
|
|
@ -630,6 +632,7 @@
|
||||||
@update="onInterestUpdated"
|
@update="onInterestUpdated"
|
||||||
/>
|
/>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
</div>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,23 @@
|
||||||
<div>
|
<div>
|
||||||
<v-container fluid>
|
<v-container fluid>
|
||||||
<!-- Header Section -->
|
<!-- Header Section -->
|
||||||
<v-row class="mb-6">
|
<v-row class="mb-4 mb-md-6">
|
||||||
<v-col cols="12" md="8">
|
<v-col cols="12" md="8">
|
||||||
<h1 class="text-h4 font-weight-bold mb-2">
|
<h1 class="text-h5 text-md-h4 font-weight-bold mb-1 mb-md-2">
|
||||||
Port Nimara Berth Interests
|
Port Nimara Berth Interests
|
||||||
</h1>
|
</h1>
|
||||||
<p class="text-subtitle-1 text-grey-darken-1">
|
<p class="text-body-2 text-md-subtitle-1 text-grey-darken-1">
|
||||||
Manage and track all potential client interests
|
Manage and track all potential client interests
|
||||||
</p>
|
</p>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" md="4" class="d-flex justify-end align-center">
|
<v-col cols="12" md="4" class="d-flex justify-start justify-md-end align-center mt-2 mt-md-0">
|
||||||
<v-btn
|
<v-btn
|
||||||
color="primary"
|
color="primary"
|
||||||
size="large"
|
:size="mobile ? 'default' : 'large'"
|
||||||
@click="showCreateModal = true"
|
@click="showCreateModal = true"
|
||||||
prepend-icon="mdi-plus"
|
prepend-icon="mdi-plus"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
|
:block="mobile"
|
||||||
>
|
>
|
||||||
Add Interest
|
Add Interest
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
@ -26,14 +27,14 @@
|
||||||
|
|
||||||
<!-- Search and Filters Section -->
|
<!-- Search and Filters Section -->
|
||||||
<v-row class="mb-4">
|
<v-row class="mb-4">
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" :md="mobile ? 12 : 6" class="mb-2 mb-md-0">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="search"
|
v-model="search"
|
||||||
label="Search interests..."
|
label="Search interests..."
|
||||||
placeholder="Search by name, yacht, email, phone..."
|
placeholder="Search by name, yacht, email, phone..."
|
||||||
prepend-inner-icon="mdi-magnify"
|
prepend-inner-icon="mdi-magnify"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="comfortable"
|
:density="mobile ? 'compact' : 'comfortable'"
|
||||||
clearable
|
clearable
|
||||||
hide-details
|
hide-details
|
||||||
class="search-field"
|
class="search-field"
|
||||||
|
|
@ -42,44 +43,56 @@
|
||||||
<v-fade-transition>
|
<v-fade-transition>
|
||||||
<v-chip
|
<v-chip
|
||||||
v-if="filteredInterests.length !== interests?.list?.length"
|
v-if="filteredInterests.length !== interests?.list?.length"
|
||||||
size="small"
|
size="x-small"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
>
|
>
|
||||||
{{ filteredInterests.length }} results
|
{{ filteredInterests.length }}
|
||||||
</v-chip>
|
</v-chip>
|
||||||
</v-fade-transition>
|
</v-fade-transition>
|
||||||
</template>
|
</template>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" md="6" class="d-flex justify-end align-center gap-2">
|
<v-col cols="12" :md="mobile ? 12 : 6">
|
||||||
|
<div class="d-flex flex-wrap align-center" :class="mobile ? 'justify-start' : 'justify-end'">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="hasActiveFilters"
|
v-if="hasActiveFilters && mobile"
|
||||||
|
variant="text"
|
||||||
|
color="primary"
|
||||||
|
size="x-small"
|
||||||
|
@click="clearAllFilters"
|
||||||
|
icon="mdi-filter-off"
|
||||||
|
class="mr-2"
|
||||||
|
/>
|
||||||
|
<v-btn
|
||||||
|
v-if="hasActiveFilters && !mobile"
|
||||||
variant="text"
|
variant="text"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="clearAllFilters"
|
@click="clearAllFilters"
|
||||||
prepend-icon="mdi-filter-off"
|
prepend-icon="mdi-filter-off"
|
||||||
|
class="mr-2"
|
||||||
>
|
>
|
||||||
Clear Filters
|
Clear Filters
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-chip-group
|
<v-chip-group
|
||||||
v-model="selectedSalesLevel"
|
v-model="selectedSalesLevel"
|
||||||
selected-class="text-primary"
|
selected-class="text-primary"
|
||||||
column
|
:column="false"
|
||||||
|
mandatory
|
||||||
>
|
>
|
||||||
<v-chip
|
<v-chip
|
||||||
filter
|
filter
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
value="all"
|
value="all"
|
||||||
>
|
>
|
||||||
All Levels
|
All
|
||||||
</v-chip>
|
</v-chip>
|
||||||
<v-chip
|
<v-chip
|
||||||
filter
|
filter
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
value="qualified"
|
value="qualified"
|
||||||
>
|
>
|
||||||
Qualified
|
Qualified
|
||||||
|
|
@ -87,20 +100,21 @@
|
||||||
<v-chip
|
<v-chip
|
||||||
filter
|
filter
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
value="loi"
|
value="loi"
|
||||||
>
|
>
|
||||||
LOI Sent
|
LOI
|
||||||
</v-chip>
|
</v-chip>
|
||||||
<v-chip
|
<v-chip
|
||||||
filter
|
filter
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
value="reserved"
|
value="reserved"
|
||||||
>
|
>
|
||||||
Reserved
|
Reserved
|
||||||
</v-chip>
|
</v-chip>
|
||||||
</v-chip-group>
|
</v-chip-group>
|
||||||
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
@ -122,21 +136,21 @@
|
||||||
>
|
>
|
||||||
<template #item="{ item }">
|
<template #item="{ item }">
|
||||||
<tr @click="handleRowClick(item)" class="table-row">
|
<tr @click="handleRowClick(item)" class="table-row">
|
||||||
<td>
|
<td class="contact-cell">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<v-avatar size="32" color="primary" class="mr-3">
|
<v-avatar :size="mobile ? 28 : 32" color="primary" :class="mobile ? 'mr-2' : 'mr-3'">
|
||||||
<span class="text-white text-caption font-weight-bold">
|
<span class="text-white text-caption font-weight-bold">
|
||||||
{{ getInitials(item["Full Name"]) }}
|
{{ getInitials(item["Full Name"]) }}
|
||||||
</span>
|
</span>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1 min-width-0">
|
||||||
<div class="d-flex align-center gap-2">
|
<div class="d-flex align-center gap-1">
|
||||||
<span class="font-weight-medium">{{ item["Full Name"] }}</span>
|
<span class="font-weight-medium text-truncate">{{ item["Full Name"] }}</span>
|
||||||
<v-tooltip v-if="item['Extra Comments']" location="bottom">
|
<v-tooltip v-if="item['Extra Comments']" location="bottom">
|
||||||
<template #activator="{ props }">
|
<template #activator="{ props }">
|
||||||
<v-icon
|
<v-icon
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
size="small"
|
:size="mobile ? 'x-small' : 'small'"
|
||||||
color="orange"
|
color="orange"
|
||||||
>
|
>
|
||||||
mdi-comment-text
|
mdi-comment-text
|
||||||
|
|
@ -145,7 +159,7 @@
|
||||||
<span>{{ item["Extra Comments"] }}</span>
|
<span>{{ item["Extra Comments"] }}</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-caption text-grey-darken-1">{{ item["Email Address"] }}</div>
|
<div class="text-caption text-grey-darken-1 text-truncate">{{ item["Email Address"] }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -214,6 +228,7 @@ useHead({
|
||||||
title: "Interest List",
|
title: "Interest List",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const { mobile } = useDisplay();
|
||||||
const user = useDirectusUser();
|
const user = useDirectusUser();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const loading = ref(true);
|
const loading = ref(true);
|
||||||
|
|
@ -256,14 +271,23 @@ const handleInterestCreated = async (interest: Interest) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const headers = [
|
const headers = computed(() => {
|
||||||
|
if (mobile) {
|
||||||
|
return [
|
||||||
|
{ title: "Contact", key: "Full Name", sortable: true },
|
||||||
|
{ title: "Status", key: "Sales Process Level", sortable: true },
|
||||||
|
{ title: "Created", key: "Created At", sortable: true },
|
||||||
|
];
|
||||||
|
}
|
||||||
|
return [
|
||||||
{ title: "Contact", key: "Full Name", sortable: true, width: "25%" },
|
{ title: "Contact", key: "Full Name", sortable: true, width: "25%" },
|
||||||
{ title: "Sales Status", key: "Sales Process Level", sortable: true },
|
{ title: "Sales Status", key: "Sales Process Level", sortable: true },
|
||||||
{ title: "EOI Status", key: "EOI Status", sortable: true },
|
{ title: "EOI Status", key: "EOI Status", sortable: true },
|
||||||
{ title: "Contract", key: "Contract Status", sortable: true },
|
{ title: "Contract", key: "Contract Status", sortable: true },
|
||||||
{ title: "Category", key: "Lead Category", sortable: true },
|
{ title: "Category", key: "Lead Category", sortable: true },
|
||||||
{ title: "Created", key: "Created At", sortable: true },
|
{ title: "Created", key: "Created At", sortable: true },
|
||||||
];
|
];
|
||||||
|
});
|
||||||
|
|
||||||
// Check if any filters are active
|
// Check if any filters are active
|
||||||
const hasActiveFilters = computed(() => {
|
const hasActiveFilters = computed(() => {
|
||||||
|
|
@ -525,53 +549,95 @@ const getRelativeTime = (dateString: string) => {
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Column width constraints */
|
/* Responsive column widths */
|
||||||
.modern-table :deep(th:nth-child(1)),
|
@media (min-width: 769px) {
|
||||||
.modern-table :deep(td:nth-child(1)) {
|
.modern-table :deep(th:nth-child(1)),
|
||||||
|
.modern-table :deep(td:nth-child(1)) {
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th:nth-child(2)),
|
.modern-table :deep(th:nth-child(2)),
|
||||||
.modern-table :deep(td:nth-child(2)) {
|
.modern-table :deep(td:nth-child(2)) {
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th:nth-child(3)),
|
.modern-table :deep(th:nth-child(3)),
|
||||||
.modern-table :deep(td:nth-child(3)) {
|
.modern-table :deep(td:nth-child(3)) {
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th:nth-child(4)),
|
.modern-table :deep(th:nth-child(4)),
|
||||||
.modern-table :deep(td:nth-child(4)) {
|
.modern-table :deep(td:nth-child(4)) {
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th:nth-child(5)),
|
.modern-table :deep(th:nth-child(5)),
|
||||||
.modern-table :deep(td:nth-child(5)) {
|
.modern-table :deep(td:nth-child(5)) {
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th:nth-child(6)),
|
.modern-table :deep(th:nth-child(6)),
|
||||||
.modern-table :deep(td:nth-child(6)) {
|
.modern-table :deep(td:nth-child(6)) {
|
||||||
min-width: 140px;
|
min-width: 140px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mobile-specific styles */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.table-container {
|
.table-container {
|
||||||
margin: 0 -12px;
|
margin: 0 -12px;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* For mobile, only show essential columns */
|
||||||
.modern-table :deep(.v-table__wrapper) {
|
.modern-table :deep(.v-table__wrapper) {
|
||||||
min-width: 900px;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(th) {
|
.modern-table :deep(th) {
|
||||||
white-space: nowrap;
|
padding: 8px !important;
|
||||||
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modern-table :deep(td) {
|
.modern-table :deep(td) {
|
||||||
white-space: nowrap;
|
padding: 12px 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide columns on mobile that aren't in mobile headers */
|
||||||
|
.modern-table :deep(th:nth-child(n+4)),
|
||||||
|
.modern-table :deep(td:nth-child(n+4)) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Contact cell optimization */
|
||||||
|
.contact-cell {
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-cell .text-truncate {
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Adjust table row height on mobile */
|
||||||
|
.table-row td {
|
||||||
|
padding: 12px 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure badges are sized appropriately */
|
||||||
|
.modern-table :deep(.v-chip) {
|
||||||
|
height: 20px !important;
|
||||||
|
font-size: 0.625rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure proper text truncation */
|
||||||
|
.text-truncate {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.min-width-0 {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue