mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
shrink calendar
This commit is contained in:
1 parent
6b3402235c
commit
22f7738b43
1 file changed
+29
-10
@@ -17,14 +17,14 @@
|
|||||||
:scroll-to-hour="calConfig.scrollHour"
|
:scroll-to-hour="calConfig.scrollHour"
|
||||||
:split-days="splits"
|
:split-days="splits"
|
||||||
:sticky-split-labels="true"
|
:sticky-split-labels="true"
|
||||||
:min-split-width="220"
|
:min-split-width="150"
|
||||||
@ready="onReady()"
|
@ready="onReady()"
|
||||||
@view-change="weekChanged"
|
@view-change="weekChanged"
|
||||||
@event-drop="eventMoved"
|
@event-drop="eventMoved"
|
||||||
@event-focus="eventFocused"
|
@event-focus="eventFocused"
|
||||||
>
|
>
|
||||||
<template v-slot:split-label="{ split }">
|
<template v-slot:split-label="{ split }">
|
||||||
<div class="w-100 h-100 d-flex flex-column">
|
<div class="colWidth h-100 d-flex flex-column">
|
||||||
<span v-if="split.date" class="d-flex align-center">
|
<span v-if="split.date" class="d-flex align-center">
|
||||||
<img v-if="split.isHomeoffice" :src="require('@/plugins/app/_img/icons/home.svg')" class="mr-2">
|
<img v-if="split.isHomeoffice" :src="require('@/plugins/app/_img/icons/home.svg')" class="mr-2">
|
||||||
<p class="weekday-label">{{ getHeadingDate(split.date) }}</p>
|
<p class="weekday-label">{{ getHeadingDate(split.date) }}</p>
|
||||||
@@ -39,10 +39,10 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="unscheduled-time d-flex align-center text-left" :class="{'vuecal__cell-split--weekend': split.isWeekend}">
|
<div class="unscheduled-time d-flex align-center text-left" :class="{'vuecal__cell-split--weekend': split.isWeekend}">
|
||||||
<div class="unscheduled-time-initials d-flex align-center justify-center me-4">
|
<div class="unscheduled-time-initials d-flex align-center justify-center">
|
||||||
<p>{{ split.initials }}</p>
|
<p>{{ split.initials }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="text-wrap me-4">
|
||||||
<p class="mb-0 mt-0 unscheduled-time-name">{{split.fullname}}</p>
|
<p class="mb-0 mt-0 unscheduled-time-name">{{split.fullname}}</p>
|
||||||
<h1 class="mb-0 mt-0">{{split.unscheduledTime}} h</h1>
|
<h1 class="mb-0 mt-0">{{split.unscheduledTime}} h</h1>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,14 +58,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:event="{ event }">
|
<template v-slot:event="{ event }">
|
||||||
<div v-if="event.type == 'non-working-hours'" class="custom-event-body non-working-event w-100 h-100 d-flex flex-column justify-center">
|
<div v-if="event.type == 'non-working-hours'" class="custom-event-body non-working-event colWidth h-100 d-flex flex-column justify-center">
|
||||||
<div class="d-flex justify-center align-center">
|
<div class="d-flex justify-center align-center">
|
||||||
<v-icon icon="mdi-cancel" color="black"></v-icon>
|
<v-icon icon="mdi-cancel" color="black"></v-icon>
|
||||||
<h3 class="mb-0 ms-2">{{ event.title }}</h3>
|
<h3 class="mb-0 ms-2">{{ event.title }}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else-if="['subtask', 'blocker', 'adhoc', 'vacation', 'free_day'].includes(event.type)" class="custom-event-body w-100 h-100 d-flex flex-column justify-space-between" :class="{'short-event' : getEventLength(event) <= 9000000, 'mini-event' : getEventLength(event) <= 5400000, 'micro-event' : getEventLength(event) <= 3600000}" :style="{backgroundColor: event._timeblock_is_finished || event.subtask.is_finished ? '#dedfe0' : event.color || event.subtask.color}">
|
<div v-else-if="['subtask', 'blocker', 'adhoc', 'vacation', 'free_day'].includes(event.type)" class="custom-event-body colWidth h-100 d-flex flex-column justify-space-between" :class="{'short-event' : getEventLength(event) <= 9000000, 'mini-event' : getEventLength(event) <= 5400000, 'micro-event' : getEventLength(event) <= 3600000}" :style="{backgroundColor: event._timeblock_is_finished || event.subtask.is_finished ? '#dedfe0' : event.color || event.subtask.color}">
|
||||||
<div class="event-content" :class="{'is-blocker': event.isBlocker}">
|
<div class="event-content" :class="{'is-blocker': event.isBlocker}">
|
||||||
<template v-if="event.type == 'subtask'">
|
<template v-if="event.type == 'subtask'">
|
||||||
<small v-if="event.subtask.project_code" class="project-code">{{ event.subtask.project_code }}</small>
|
<small v-if="event.subtask.project_code" class="project-code">{{ event.subtask.project_code }}</small>
|
||||||
@@ -281,6 +281,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
.colWidth
|
||||||
|
width: 130px
|
||||||
|
|
||||||
|
@media (min-width: 1476px)
|
||||||
|
width: 100% !important
|
||||||
|
|
||||||
.vuecal
|
.vuecal
|
||||||
box-shadow: none !important
|
box-shadow: none !important
|
||||||
|
|
||||||
@@ -365,19 +371,27 @@ export default {
|
|||||||
padding: 10px 15px
|
padding: 10px 15px
|
||||||
margin-top: 10px
|
margin-top: 10px
|
||||||
|
|
||||||
.unscheduled-time-name
|
.text-wrap
|
||||||
|
width: min-content
|
||||||
|
margin-left: 12px
|
||||||
|
|
||||||
|
h1
|
||||||
|
font-size: 18px
|
||||||
|
|
||||||
|
p
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
font-size: 15px
|
font-size: 15px
|
||||||
|
line-height: normal
|
||||||
|
|
||||||
.unscheduled-time-initials
|
.unscheduled-time-initials
|
||||||
width: 50px
|
width: 30px
|
||||||
height: 50px
|
height: 30px
|
||||||
background: #6200EE
|
background: #6200EE
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
|
|
||||||
p
|
p
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
font-size: 20px
|
font-size: 15px
|
||||||
color: white
|
color: white
|
||||||
|
|
||||||
|
|
||||||
@@ -412,6 +426,7 @@ export default {
|
|||||||
.vuecal__event
|
.vuecal__event
|
||||||
border-radius: 16px
|
border-radius: 16px
|
||||||
// padding: 20px 10px
|
// padding: 20px 10px
|
||||||
|
min-height: 200px !important
|
||||||
text-align: left
|
text-align: left
|
||||||
background: rgba(248, 248, 248, 1)
|
background: rgba(248, 248, 248, 1)
|
||||||
min-height: 40px
|
min-height: 40px
|
||||||
@@ -516,11 +531,15 @@ export default {
|
|||||||
font-size: 11px
|
font-size: 11px
|
||||||
|
|
||||||
.event-footer
|
.event-footer
|
||||||
|
flex-flow: row wrap
|
||||||
|
justify-content: center
|
||||||
|
alight-items: center
|
||||||
padding-top: 15px
|
padding-top: 15px
|
||||||
border-top: 1px solid rgba(33, 33, 33, 0.08)
|
border-top: 1px solid rgba(33, 33, 33, 0.08)
|
||||||
|
|
||||||
.event-footer-button
|
.event-footer-button
|
||||||
box-shadow: none !important
|
box-shadow: none !important
|
||||||
|
margin-bottom: 8px
|
||||||
padding: 9px !important
|
padding: 9px !important
|
||||||
min-height: fit-content
|
min-height: fit-content
|
||||||
height: fit-content
|
height: fit-content
|
||||||
|
|||||||
Reference in new issue
Block a user