mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-30 17:47:28 +01:00
* Cleans up log viewer and adds zigzag line for skipped logs * Updates components * Cleans up css * Cleans up more css * Fixes tests * Fixes typing * Fixes typescript errors * Fixes selected color
46 lines
681 B
Vue
46 lines
681 B
Vue
<template>
|
|
<relative-time :date="date" class="date"></relative-time>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
defineProps<{
|
|
date: Date;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.date {
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.date {
|
|
background-color: #262626;
|
|
color: #258ccd;
|
|
}
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
.date {
|
|
background-color: #262626;
|
|
color: #258ccd;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
.date {
|
|
background-color: #f0f0f0;
|
|
color: #009900;
|
|
}
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
.date {
|
|
background-color: #f0f0f0;
|
|
color: #009900;
|
|
}
|
|
}
|
|
</style>
|