jws-frontend/src/layouts/MainLayout.vue

634 lines
18 KiB
Vue
Raw Normal View History

2024-04-02 11:02:16 +07:00
<script setup lang="ts">
import { ref, onMounted, computed, reactive } from 'vue';
2024-04-02 11:02:16 +07:00
import { storeToRefs } from 'pinia';
import { useQuasar } from 'quasar';
2024-08-07 14:16:27 +07:00
import { getUserId, getUsername, logout, getRole } from 'src/services/keycloak';
import { Icon } from '@iconify/vue';
import { useI18n } from 'vue-i18n';
import moment from 'moment';
2024-04-02 11:02:16 +07:00
import useLoader from 'stores/loader';
2024-08-09 14:39:15 +07:00
import ProfileMenu from './ProfileMenu.vue';
2024-08-09 15:03:03 +07:00
import DrawerComponent from './DrawerComponent.vue';
2024-08-09 15:06:41 +07:00
import useUserStore from 'stores/user';
2024-09-30 16:36:18 +07:00
import { CanvasComponent, DialogForm } from 'components/index';
2024-08-09 15:06:41 +07:00
import { dialog } from 'stores/utils';
import useMyBranchStore from 'stores/my-branch';
2024-10-16 11:14:13 +07:00
import { useConfigStore } from 'src/stores/config';
import { useNavigator } from 'src/stores/navigator';
import { initLang, initTheme, Lang, setLang } from 'src/utils/ui';
import { baseUrl } from 'stores/utils';
2024-10-31 17:59:51 +07:00
import { useNotification } from 'src/stores/notification';
import NotiDialog from 'src/pages/00_notification/NotiDialog.vue';
2024-07-05 11:10:00 +07:00
const useMyBranch = useMyBranchStore();
const { fetchListMyBranch } = useMyBranch;
2024-04-02 11:02:16 +07:00
2024-04-02 17:55:26 +07:00
interface NotificationButton {
item: string;
color: string;
active: boolean;
}
2024-04-02 11:02:16 +07:00
const $q = useQuasar();
const loaderStore = useLoader();
const navigatorStore = useNavigator();
2024-10-31 17:59:51 +07:00
const notificationStore = useNotification();
2024-10-16 11:14:13 +07:00
const configStore = useConfigStore();
2024-04-02 11:02:16 +07:00
2024-10-31 17:59:51 +07:00
const { data: notificationData } = storeToRefs(notificationStore);
2024-04-02 11:02:16 +07:00
const { visible } = storeToRefs(loaderStore);
const { t } = useI18n({ useScope: 'global' });
2024-04-22 14:05:22 +07:00
const userStore = useUserStore();
2024-04-02 11:02:16 +07:00
2024-06-07 12:20:57 +00:00
const canvasModal = ref(false);
2024-07-04 10:39:54 +00:00
2024-07-19 07:00:35 +00:00
const leftDrawerOpen = ref<boolean>(false);
2024-07-04 10:39:54 +00:00
const leftDrawerMini = ref(false);
2025-03-05 13:28:50 +07:00
const unread = computed<number>(
() => notificationData.value.filter((v) => !v.read).length || 0,
);
2024-04-22 17:54:41 +07:00
const userImage = ref<string>();
2024-08-20 18:04:42 +07:00
const userGender = ref('');
2024-06-07 12:20:57 +00:00
const canvasRef = ref();
const language: {
value: Lang;
label: string;
2024-04-22 17:54:41 +07:00
icon: string;
date: string;
}[] = [
{ value: Lang.Thai, label: 'ไทย', icon: 'th', date: 'th' },
{ value: Lang.English, label: 'English', icon: 'us', date: 'en-gb' },
];
const state = reactive({
filterUnread: false,
notiOpen: false,
notiDialog: false,
notiId: '',
});
2024-04-02 17:55:26 +07:00
const notiMenu = ref<NotificationButton[]>([
{
item: 'all',
2024-04-02 17:55:26 +07:00
color: 'noti-switch-on',
active: true,
},
{
item: 'unread',
2024-04-02 17:55:26 +07:00
color: 'noti-switch-off',
active: false,
},
]);
2024-04-02 17:55:26 +07:00
function setActive(button: NotificationButton) {
notiMenu.value = notiMenu.value.map((current) => ({
item: current.item,
color: current.item !== button.item ? 'noti-switch-off' : 'noti-switch-on',
active: current.item === button.item,
}));
if (button.item === 'unread') {
2024-04-02 17:55:26 +07:00
// noti.value?.result &&
state.filterUnread = true;
2024-04-02 17:55:26 +07:00
}
if (button.item === 'all') {
state.filterUnread = false;
2024-04-02 17:55:26 +07:00
}
}
2024-04-22 14:05:22 +07:00
function doLogout() {
dialog({
icon: 'mdi-logout-variant',
2024-08-28 18:05:01 +07:00
title: t('dialog.title.confirmLogout'),
2024-04-22 14:05:22 +07:00
persistent: true,
2024-06-28 02:27:01 +00:00
color: 'negative',
2024-08-28 18:05:01 +07:00
message: t('dialog.message.confirmLogout'),
actionText: t('general.logout'),
2024-04-22 14:05:22 +07:00
action: async () => {
logout();
},
2024-06-28 02:27:01 +00:00
cancel: () => {},
2024-04-22 14:05:22 +07:00
});
}
function readNoti(id: string) {
const notification = notificationData.value.find((n) => n.id === id);
state.notiDialog = true;
state.notiId = id;
if (notification) {
notification.read = true;
}
}
function signatureSubmit() {
const signature = canvasRef.value.setCanvas();
userStore.setSignature(signature);
canvasModal.value = false;
}
async function signatureFetch() {
const ret = await userStore.getSignature();
if (ret) canvasRef.value.getCanvas(ret);
}
onMounted(async () => {
initTheme();
initLang();
2024-10-16 11:14:13 +07:00
await configStore.getConfig();
2024-10-31 17:59:51 +07:00
{
const noti = await notificationStore.getNotificationList();
if (noti) {
notificationData.value = noti.result;
}
}
2024-07-05 11:10:00 +07:00
await fetchListMyBranch(getUserId() ?? '');
2024-07-19 07:00:35 +00:00
leftDrawerOpen.value = $q.screen.gt.xs ? true : false;
2024-07-05 11:10:00 +07:00
const user = getUsername();
const uid = getUserId();
2024-04-23 11:13:57 +00:00
userStore.userOption.roleOpts.length === 0
? await userStore.fetchRoleOption()
: '';
if (user === 'admin') return;
if (uid) {
2024-08-20 18:04:42 +07:00
const res = await userStore.fetchById(uid);
if (res && res.gender) {
userGender.value = res.gender;
userImage.value = `${baseUrl}/user/${uid}/profile-image/${res.selectedImage}`;
2024-08-20 18:04:42 +07:00
}
}
});
2024-04-02 11:02:16 +07:00
</script>
<template>
2024-07-31 06:09:10 +00:00
<q-layout
view="lHh Lpr lFf"
class="bg"
:class="{ dark: $q.dark.isActive }"
:style="`background-size: ${$q.screen.gt.sm ? '100% 100%' : 'cover'}`"
>
2024-07-04 10:39:54 +00:00
<drawer-component
:mini="leftDrawerMini || $q.screen.lt.sm"
2024-07-04 10:39:54 +00:00
v-model:left-drawer-open="leftDrawerOpen"
/>
2024-04-02 17:55:26 +07:00
2024-07-04 11:28:51 +07:00
<q-page-container>
2024-07-02 09:11:10 +00:00
<!-- drawer control -->
2024-07-04 10:39:54 +00:00
<div style="position: relative; z-index: 1000" :hidden="$q.screen.lt.sm">
2024-07-04 09:53:16 +00:00
<div
2024-07-02 09:11:10 +00:00
size="36px"
style="
position: absolute;
2024-07-04 09:53:16 +00:00
border-radius: 50%;
2024-07-02 09:11:10 +00:00
top: 28px;
2024-07-04 09:53:16 +00:00
left: -22px;
2024-07-02 09:11:10 +00:00
background-color: var(--surface-1);
2024-07-04 09:53:16 +00:00
border: 4px solid var(--surface-1);
2024-07-02 09:11:10 +00:00
"
2024-07-04 09:53:16 +00:00
class="flex items-center justify-center"
2024-07-02 09:11:10 +00:00
>
2024-04-02 17:55:26 +07:00
<q-btn
flat
2024-07-02 09:11:10 +00:00
dense
round
size="12px"
aria-label="Menu"
id="btn-open-drawer"
style="
background-color: hsl(var(--negative-bg) / 0.1);
overflow: hidden;
"
2024-07-04 10:39:54 +00:00
@click="leftDrawerMini = !leftDrawerMini"
2024-04-02 17:55:26 +07:00
>
2024-07-02 09:11:10 +00:00
<q-icon
2024-07-04 10:39:54 +00:00
:name="!leftDrawerMini ? 'mdi-backburger' : 'mdi-forwardburger'"
2024-07-02 09:11:10 +00:00
size="16px"
style="color: hsl(var(--negative-bg))"
/>
</q-btn>
2024-07-04 09:53:16 +00:00
</div>
2024-07-02 09:11:10 +00:00
</div>
<div
2024-08-01 09:37:31 +07:00
id="app-content"
2024-07-31 06:09:10 +00:00
class="scroll column"
2024-07-09 11:35:50 +07:00
style="height: 100vh; flex-wrap: nowrap; padding-bottom: var(--size-4)"
2024-07-02 09:11:10 +00:00
>
<!-- header -->
<div
2024-07-31 06:09:10 +00:00
class="q-px-lg row items-center justify-start q-pb-md q-pt-lg"
2024-07-02 09:11:10 +00:00
style="position: sticky; top: 0; z-index: 8"
refactor: responsive (#180) * refactor: can open one dropdown whe lt.md * style: update MainLayout background color and fix avatar border class name * feat: add touch position binding for dropdown in ProfileMenu * refactor: enhance icon styling in DrawerComponent * fix: update screen size conditions * feat: add responsive search and filter functionality in MainPage * feat: update styling and functionality in BasicInformation and MainPage components * feat: package view mode improve layout and responsiveness * feat: improve layout and responsiveness of ProfileBanner component * feat: enhance TreeView component with improved icon layout and cursor pointer styling * feat: update DialogForm component to prevent text wrapping in the center column * feat: enhance FormDocument, PriceDataComponent, and BasicInfoProduct components with layout and styling improvements * feat: enhance ProfileBanner dark tab * feat: 02 => responsive & responsibleArea type * fix: layout header bg condition & 02 filter col * feat: 04 flow => add AddButton component and enhance layout in FormFlow and FlowDialog * feat: 07 => enhance layout and responsiveness * refactor: simplify header structure and improve layout consistency * fix: improve text color in ItemCard and adjust responsive breakpoints in product service group * refactor: 05 => enhance layout responsiveness and improve class bindings in quotation components * refactor: enhance styling and improve props flexibility in dialog and select components * refactor: 05 => enhance layout responsiveness in quotation components * refactor: 05 => enhance layout responsiveness * refactor: 05 => formWorkerAdd * refactor: 05 => formWorkerAdd Product table * refactor: 05 => improve layout responsiveness and enhance component structure * refactor: enhance grid view handling and improve component imports * refactor: improve column classes for better layout consistency * refactor: 09 => enhance layout structure and improve responsiveness in task order views * refactor: 10 => enhance invoice main page layout and improve component interactions * refactor: 13 => enhance receipt main page layout and improve component interactions * refactor: 11 => enhance layout and improve responsiveness in credit note pages * refactor: 01 => screen.sm search & filter * refactor: 01 => improve layout responsiveness and fix variable naming in branch management forms --------- Co-authored-by: puriphatt <puriphat@frappet.com>
2025-01-27 10:39:53 +07:00
:style="`
background: ${$q.screen.lt.md ? ($q.dark.isActive ? '#1c1d21' : '#ecedef') : 'transparent'};
`"
2024-07-02 09:11:10 +00:00
>
2024-07-04 10:39:54 +00:00
<q-btn
v-if="$q.screen.lt.sm"
icon="mdi-menu"
flat
dense
rounded
class="q-mr-md"
@click="
() => {
leftDrawerMini = false;
leftDrawerOpen = !leftDrawerOpen;
}
"
/>
2024-08-26 16:24:08 +07:00
<div class="column col">
2024-07-03 06:45:12 +00:00
<span
class="title-gradient text-weight-bold"
2024-07-03 06:45:12 +00:00
:class="{ 'text-h6': $q.screen.gt.xs }"
2024-07-04 15:45:20 +07:00
:style="{
filter: `brightness(${$q.dark.isActive ? '2' : '1'})`,
}"
2024-07-03 06:45:12 +00:00
>
2024-07-02 09:11:10 +00:00
{{
navigatorStore.current?.title
? $t(navigatorStore.current?.title)
2024-07-03 06:45:12 +00:00
: $q.screen.gt.xs
? 'Welcome to Jobs Worker Service'
: 'Jobs Worker Service'
2024-07-02 09:11:10 +00:00
}}
</span>
2024-07-08 14:08:57 +07:00
<div class="flex items-center" style="gap: var(--size-1)">
2024-07-19 07:00:35 +00:00
<template
v-for="(item, i) in navigatorStore.current.path"
2024-07-19 07:00:35 +00:00
:key="i"
>
2024-07-08 14:08:57 +07:00
<span
class="text-caption cursor-pointer"
@click="item.handler?.()"
2024-07-24 13:55:26 +07:00
:class="{
'text-info': i !== navigatorStore.current.path.length - 1,
'hover-item': i !== navigatorStore.current.path.length - 1,
2024-07-24 13:55:26 +07:00
}"
2024-07-08 14:08:57 +07:00
>
2024-07-08 16:29:37 +07:00
{{
item.text
? item.i18n
? $t(item.text, {
...(item.argsi18n || {}),
})
: item.text
2024-07-08 16:29:37 +07:00
: ''
}}
2024-07-08 14:08:57 +07:00
</span>
<q-icon
2024-07-24 13:55:26 +07:00
:class="{
'text-info': i !== navigatorStore.current.path.length - 1,
2024-07-24 13:55:26 +07:00
}"
2024-07-08 14:08:57 +07:00
name="mdi-chevron-right"
v-if="i + 1 !== navigatorStore.current.path.length"
2024-07-08 14:08:57 +07:00
/>
</template>
</div>
2024-07-02 09:11:10 +00:00
</div>
2024-07-04 10:39:54 +00:00
<div class="row q-gutter-x-md items-center" style="margin-left: auto">
2024-07-02 09:11:10 +00:00
<!-- notification -->
<q-btn
2024-07-02 09:11:10 +00:00
round
dense
flat
class="noti-circle"
2024-07-03 06:45:12 +00:00
:size="$q.screen.lt.sm ? 'sm' : ''"
2024-07-02 09:11:10 +00:00
:class="{ bordered: $q.dark.isActive, dark: $q.dark.isActive }"
style="color: var(--surface-1)"
@click="state.notiOpen = !state.notiOpen"
2024-04-02 17:55:26 +07:00
>
2024-08-06 13:32:34 +07:00
<q-icon name="mdi-bell" />
2024-07-02 09:11:10 +00:00
<q-badge v-if="unread !== 0" rounded floating color="negative">
{{ unread }}
</q-badge>
<q-menu
:offset="[0, 10]"
anchor="bottom middle"
self="top middle"
@before-hide="
() => {
state.notiOpen = false;
}
"
2024-07-02 09:11:10 +00:00
>
<div class="q-pa-sm row col-12 items-center">
<div class="text-subtitle1 text-weight-bold">
{{ $t('noti.title') }}
</div>
2024-07-02 09:11:10 +00:00
<q-space />
</div>
<div class="q-px-sm q-pb-md">
2024-07-02 09:11:10 +00:00
<q-btn
rounded
padding="0px 10px"
class="text-weight-medium text-capitalize"
2024-07-02 09:11:10 +00:00
v-for="(btn, index) in notiMenu"
:flat="!btn.active"
:unelevated="btn.active"
:key="index"
:label="$t('noti.' + btn.item)"
2024-07-02 09:11:10 +00:00
:class="btn.color"
@click="setActive(btn)"
/>
</div>
<section
v-if="
state.filterUnread
? notificationData.filter((v) => !v.read).length
: notificationData.length
"
class="caption cursor-pointer scroll"
style="max-height: 30vh; width: 300px"
>
<q-item
v-for="(item, i) in state.filterUnread
? notificationData.filter((v) => !v.read)
: notificationData"
dense
clickable
class="items-center q-py-xs q-px-sm"
v-ripple
@click="readNoti(item.id)"
:key="i"
>
<div
class="rounded q-mr-sm"
:style="`background: hsl(var(--info-bg)/${item.read ? 0 : 1}); width: 6px; height: 6px`"
/>
<q-avatar
v-if="$q.screen.gt.xs"
color="positive"
style="height: 36px; width: 36px"
2024-04-02 17:55:26 +07:00
>
<q-icon color="white" name="mdi-check" />
</q-avatar>
2024-07-02 09:11:10 +00:00
<div class="col column text-caption q-pl-md ellipsis">
<span class="block ellipsis full-width text-weight-bold">
{{ item.title }}
<q-tooltip
anchor="top middle"
self="bottom middle"
:delay="300"
:offset="[10, 10]"
>
{{ item.title }}
</q-tooltip>
2024-04-02 17:55:26 +07:00
</span>
<span
class="block ellipsis full-width text-stone"
:class="{ 'text-weight-medium': !item.read }"
2024-07-02 09:11:10 +00:00
>
2024-10-31 17:59:51 +07:00
{{ item.detail }}
<q-tooltip
anchor="top middle"
self="bottom middle"
:delay="300"
:offset="[10, 10]"
>
{{ item.detail }}
</q-tooltip>
</span>
</div>
<span
align="right"
class="text-caption text-stone q-pl-md"
:class="{ 'text-weight-bold': !item.read }"
>
{{ moment(item.createdAt).fromNow() }}
</span>
</q-item>
</section>
<section
v-else
class="text-center q-py-sm"
style="max-height: 30vh; width: 300px"
>
<span class="app-text-muted">
{{ $t('general.noData') }}
</span>
</section>
<div class="col bordered-t">
<q-btn
flat
dense
color="info"
class="full-width text-capitalize"
@click="() => $router.push('/notification')"
>
{{ $t('noti.viewAll') }}
</q-btn>
</div>
2024-07-02 09:11:10 +00:00
</q-menu>
</q-btn>
2024-07-02 09:11:10 +00:00
<!-- เปลนนภาษา -->
<q-btn
2024-10-04 16:48:23 +07:00
id="btn-change-language"
2024-07-02 09:11:10 +00:00
round
unelevated
2024-07-03 06:45:12 +00:00
:size="$q.screen.lt.sm ? 'sm' : ''"
v-model="$i18n.locale"
2024-07-02 09:11:10 +00:00
class="no-uppercase"
>
2024-07-02 09:11:10 +00:00
<Icon
v-if="$i18n.locale === Lang.English"
2024-07-02 09:11:10 +00:00
icon="circle-flags:us"
2024-08-06 13:32:34 +07:00
:width="$q.screen.lt.sm ? '24px' : '33.6px'"
2024-07-02 09:11:10 +00:00
/>
<Icon
v-else
icon="circle-flags:th"
2024-08-06 13:32:34 +07:00
:width="$q.screen.lt.sm ? '24px' : '33.6px'"
2024-07-02 09:11:10 +00:00
/>
<q-menu
:offset="[0, 10]"
fit
anchor="bottom left"
self="top left"
auto-close
>
<q-list v-for="v in language" :key="v.value">
<q-item
2024-10-04 16:48:23 +07:00
:id="`btn-change-language-${v.value}`"
v-if="$i18n.locale !== v.value"
2024-07-02 09:11:10 +00:00
clickable
@click="() => setLang(v.value)"
2024-07-02 09:11:10 +00:00
>
<q-item-section>
<div class="row items-center">
<Icon
:icon="`circle-flags:${v.icon}`"
class="q-mr-md"
/>
{{ v.label }}
</div>
</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
<!-- User -->
<ProfileMenu
2024-09-18 14:21:07 +07:00
id="btn-profile-menu"
2024-07-02 09:11:10 +00:00
@logout="doLogout"
@edit-personal-info="console.log('edit')"
@signature="
() => {
canvasModal = true;
}
"
2024-08-07 14:16:27 +07:00
:user-image="
2024-08-20 18:04:42 +07:00
getRole()?.includes('system') ? '/img-admin.png' : userImage
2024-08-07 14:16:27 +07:00
"
2024-08-20 18:04:42 +07:00
:gender="userGender"
2024-07-02 09:11:10 +00:00
/>
</div>
2024-04-02 17:55:26 +07:00
</div>
2024-04-02 11:02:16 +07:00
2024-07-03 06:45:12 +00:00
<q-page class="col q-px-lg">
2024-07-02 09:11:10 +00:00
<router-view />
</q-page>
</div>
2024-04-02 11:02:16 +07:00
</q-page-container>
2024-09-30 16:36:18 +07:00
<DialogForm
2024-06-25 07:13:13 +00:00
width="800px"
height="550px"
2024-06-07 12:20:57 +00:00
v-model:modal="canvasModal"
no-app-box
2024-08-26 16:24:08 +07:00
:title="$t('menu.profile.addSignature')"
2024-06-25 07:13:13 +00:00
:close="() => (canvasModal = false)"
:submit="signatureSubmit"
:show="signatureFetch"
2024-06-07 12:20:57 +00:00
>
<CanvasComponent ref="canvasRef" v-model:modal="canvasModal" />
<template #footer>
<q-btn
flat
dense
:label="$t('general.clear')"
2024-06-27 03:01:19 +00:00
@click="
() => {
canvasRef.clearCanvas(), canvasRef.clearUpload();
}
"
style="color: hsl(var(--text-mute))"
2024-06-07 12:20:57 +00:00
/>
</template>
2024-09-30 16:36:18 +07:00
</DialogForm>
2024-06-07 12:20:57 +00:00
<NotiDialog v-model="state.notiDialog" v-model:id="state.notiId" />
2024-04-02 11:02:16 +07:00
<global-loading :visibility="visible" />
</q-layout>
</template>
2024-04-02 17:55:26 +07:00
<style scoped>
2024-07-31 06:09:10 +00:00
.bg {
2024-08-06 13:23:04 +07:00
background-image: url('/bg-l.png');
2024-07-31 06:09:10 +00:00
background-repeat: no-repeat;
&.dark {
2024-08-06 13:23:04 +07:00
background-image: url('/bg-d.png');
2024-07-31 06:09:10 +00:00
}
}
2024-04-02 17:55:26 +07:00
.text-stone {
--_color: var(--stone-5);
color: var(--_color);
}
.noti-circle {
--_color: var(--stone-5);
background-color: var(--_color);
&.dark {
--_color: var(--stone-9);
}
}
.noti-switch-on {
2024-04-03 15:01:39 +07:00
--_color: var(--blue-6-hsl);
background-color: hsla(var(--_color) / 0.1) !important;
color: hsl(var(--_color));
2024-04-02 17:55:26 +07:00
}
.noti-switch-off {
--_color: var(--stone-6);
color: var(--_color);
}
.account-menu-down {
& ::before {
color: var(--foreground);
}
}
2024-04-22 17:54:41 +07:00
.badge {
display: inline-block;
border-radius: var(--radius-6);
background-color: var(--indigo-0);
text-wrap: nowrap;
&.dark {
background-color: var(--surface-3);
}
}
.account-cover {
height: 65px;
background-color: var(--indigo-0);
&.dark {
background-color: var(--surface-3);
}
}
refactor: responsive (#180) * refactor: can open one dropdown whe lt.md * style: update MainLayout background color and fix avatar border class name * feat: add touch position binding for dropdown in ProfileMenu * refactor: enhance icon styling in DrawerComponent * fix: update screen size conditions * feat: add responsive search and filter functionality in MainPage * feat: update styling and functionality in BasicInformation and MainPage components * feat: package view mode improve layout and responsiveness * feat: improve layout and responsiveness of ProfileBanner component * feat: enhance TreeView component with improved icon layout and cursor pointer styling * feat: update DialogForm component to prevent text wrapping in the center column * feat: enhance FormDocument, PriceDataComponent, and BasicInfoProduct components with layout and styling improvements * feat: enhance ProfileBanner dark tab * feat: 02 => responsive & responsibleArea type * fix: layout header bg condition & 02 filter col * feat: 04 flow => add AddButton component and enhance layout in FormFlow and FlowDialog * feat: 07 => enhance layout and responsiveness * refactor: simplify header structure and improve layout consistency * fix: improve text color in ItemCard and adjust responsive breakpoints in product service group * refactor: 05 => enhance layout responsiveness and improve class bindings in quotation components * refactor: enhance styling and improve props flexibility in dialog and select components * refactor: 05 => enhance layout responsiveness in quotation components * refactor: 05 => enhance layout responsiveness * refactor: 05 => formWorkerAdd * refactor: 05 => formWorkerAdd Product table * refactor: 05 => improve layout responsiveness and enhance component structure * refactor: enhance grid view handling and improve component imports * refactor: improve column classes for better layout consistency * refactor: 09 => enhance layout structure and improve responsiveness in task order views * refactor: 10 => enhance invoice main page layout and improve component interactions * refactor: 13 => enhance receipt main page layout and improve component interactions * refactor: 11 => enhance layout and improve responsiveness in credit note pages * refactor: 01 => screen.sm search & filter * refactor: 01 => improve layout responsiveness and fix variable naming in branch management forms --------- Co-authored-by: puriphatt <puriphat@frappet.com>
2025-01-27 10:39:53 +07:00
.avatar-border {
2024-04-22 17:54:41 +07:00
margin-top: 24px;
border: 5px solid var(--surface-1);
border-radius: 50%;
position: absolute;
}
.logout-btn {
color: hsl(var(--negative-bg));
background-color: hsl(var(--stone-3-hsl));
&.dark {
background-color: transparent;
border: 1px solid hsl(var(--negative-bg));
}
}
2024-07-02 09:11:10 +00:00
.title-gradient {
background: linear-gradient(to right, var(--brand-1), var(--brand-2));
background-clip: text; /* Standard property */
-webkit-background-clip: text; /* WebKit fallback */
-webkit-text-fill-color: transparent; /* WebKit fallback */
color: transparent; /* Fallback for browsers not supporting text-clip */
}
2024-07-02 09:11:10 +00:00
:deep(main.q-page) {
min-height: 0 !important;
}
2024-07-24 13:55:26 +07:00
.hover-item:hover {
text-decoration: underline;
}
2024-04-02 17:55:26 +07:00
</style>