Merge branch 'code/cleanup' into dev
This commit is contained in:
@@ -73,7 +73,7 @@ const eventsNotDisplayed: ComputedRef<number> = computed<number>(() => eventsFo
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
ref="calendarTile"
|
ref="calendarTile"
|
||||||
class="tile relative text-xs p-2 border-slate-200 contrast-more:border-slate-500 dark:border-slate-700 dark:bg-black transition-colors"
|
class="tile relative text-xs p-2"
|
||||||
:class="{
|
:class="{
|
||||||
'text-slate-300 dark:text-slate-500': props.faded,
|
'text-slate-300 dark:text-slate-500': props.faded,
|
||||||
'text-slate-500 dark:text-slate-300': !props.faded
|
'text-slate-500 dark:text-slate-300': !props.faded
|
||||||
@@ -149,14 +149,11 @@ const eventsNotDisplayed: ComputedRef<number> = computed<number>(() => eventsFo
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
// .tile are the direct children of the grid
|
||||||
|
// We need to get, between each element, a 1px solid line to separate them, for columns and rows
|
||||||
.tile {
|
.tile {
|
||||||
&:not(:nth-child(10n)) {
|
border-right-width: 1px;
|
||||||
border-right-width: 1px;
|
border-bottom-width: 1px;
|
||||||
}
|
|
||||||
|
|
||||||
&:nth-child(n + 11) {
|
|
||||||
border-top-width: 1px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-enter-active {
|
.event-enter-active {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const emit = defineEmits(["on-click"])
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UiCard
|
<UiCard
|
||||||
class="h-full md:w-fit transition-all bg-transparent hover:text-slate-900 text-slate-500 dark:hover:text-slate-100 dark:text-slate-500 dark:focus-within:outline-gray-900 hover:-translate-y-0"
|
class="h-full lg:w-fit transition-all bg-transparent hover:text-slate-900 text-slate-500 dark:hover:text-slate-100 dark:text-slate-500 dark:focus-within:outline-gray-900 hover:-translate-y-0"
|
||||||
has-click
|
has-click
|
||||||
@on-click="emit('on-click')"
|
@on-click="emit('on-click')"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -135,11 +135,11 @@ function hideEditModal() {
|
|||||||
</Heading>
|
</Heading>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul v-if="worlds?.data" class="grid lg:grid-cols-3 gap-2">
|
<ul v-if="worlds?.data" class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2">
|
||||||
<li v-for="world in sortedWorlds" :key="world.id">
|
<li v-for="world in sortedWorlds" :key="world.id">
|
||||||
<WorldPreviewCard :world="world" @on-edit="() => deployEditModal(world)" @on-delete="() => deployDeleteModal(world)" />
|
<WorldPreviewCard :world="world" @on-edit="() => deployEditModal(world)" @on-delete="() => deployDeleteModal(world)" />
|
||||||
</li>
|
</li>
|
||||||
<li class="md:w-fit">
|
<li class="xl:w-fit">
|
||||||
<AddCard @on-click="() => isCreateWorldModalOpen = true">
|
<AddCard @on-click="() => isCreateWorldModalOpen = true">
|
||||||
<template v-if="worlds?.data?.length > 0">
|
<template v-if="worlds?.data?.length > 0">
|
||||||
{{ $t('entity.world.addSingle') }}
|
{{ $t('entity.world.addSingle') }}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ function hideEditModal() {
|
|||||||
</Heading>
|
</Heading>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="grid md:grid-cols-3 gap-2">
|
<ul class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2">
|
||||||
<li v-for="calendar in sortedCalendars" :key="calendar.id">
|
<li v-for="calendar in sortedCalendars" :key="calendar.id">
|
||||||
<CalendarPreviewCard
|
<CalendarPreviewCard
|
||||||
:calendar="calendar"
|
:calendar="calendar"
|
||||||
@@ -237,7 +237,7 @@ function hideEditModal() {
|
|||||||
@on-delete="() => deployDeleteCalendarModal(calendar)" />
|
@on-delete="() => deployDeleteCalendarModal(calendar)" />
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="md:w-fit">
|
<li class="xl:w-fit">
|
||||||
<AddCard @on-click="() => isCreateCalendarModalOpen = true">
|
<AddCard @on-click="() => isCreateCalendarModalOpen = true">
|
||||||
<template v-if="sortedCalendars.length > 0">
|
<template v-if="sortedCalendars.length > 0">
|
||||||
{{ $t('entity.calendar.addSingle') }}
|
{{ $t('entity.calendar.addSingle') }}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 1.4 MiB |
Reference in New Issue
Block a user