Skip to content

Commit 84ea455

Browse files
authored
chore: visual fixes (#94)
* chore: visual fixes * fix: bg
1 parent d416cdd commit 84ea455

7 files changed

Lines changed: 18 additions & 60 deletions

File tree

apps/atrium-telegram/app/assets/css/styles.css

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--ui-secondary: var(--tg-theme-link-color);
44
--ui-border: var(--tg-theme-section-separator-color);
55
--ui-text: var(--tg-theme-text-color);
6-
--ui-bg: var(--tg-theme-secondary-bg-color);
6+
--ui-bg: var(--tg-theme-section-bg-color);
77

88
--ui-color-neutral-400: var(--tg-theme-subtitle-text-color);
99
--ui-color-neutral-500: var(--tg-theme-subtitle-text-color);
@@ -101,17 +101,11 @@
101101
}
102102
}
103103

104-
/* Preserve scrolling behavior */
105-
/* html, body, #app {
106-
width: 100%;
107-
height: 100%;
108-
overflow: hidden;
109-
overscroll-behavior: none;
104+
html, body {
105+
background: transparent !important;
110106
}
111-
#app {
112-
overflow-y: auto;
113-
}
114-
#app::-webkit-scrollbar {
107+
108+
::-webkit-scrollbar {
115109
display: none;
116110
width: 0;
117-
} */
111+
}

apps/atrium-telegram/app/components/Navigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<nav class="z-50 touch-pan-x fixed bottom-0 left-0 right-0 w-full h-25 tg-bg-bottom-bar rounded-t-lg">
2+
<nav class="z-50 touch-pan-x fixed bottom-0 left-0 right-0 w-full h-25 tg-bg-bottom-bar border-t border-default rounded-t-lg">
33
<div class="max-w-[28rem] mx-auto">
44
<div class="mt-3 grid grid-cols-4">
55
<button

apps/atrium-telegram/app/components/TaskCard.vue

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,20 @@
6060
:ui="{
6161
trailingIcon: [
6262
'self-start mt-0.5 text-dimmed',
63-
isFocused ? 'tg-text-button' : undefined,
63+
isFocused ? 'text-secondary' : undefined,
6464
],
6565
}"
6666
class="group/task duration-200 motion-preset-bounce cursor-pointer"
67-
:class="{
68-
'bg-secondary border-b-2 border-secondary': isFocused,
69-
}"
67+
:class="[
68+
isFocused && 'border border-secondary',
69+
]"
7070
>
7171
<div class="flex flex-col gap-2 items-start">
7272
<div class="flex flex-col gap-1 items-start text-left">
73-
<h4
74-
class="text-base/5 font-semibold tg-text"
75-
:class="[
76-
isFocused ? 'tg-text-button' : undefined,
77-
]"
78-
>
73+
<h4 class="text-base/5 font-medium tg-text">
7974
{{ task.name }}
8075
</h4>
81-
<p
82-
v-if="task.description"
83-
class="text-sm/4 text-muted font-medium"
84-
:class="[
85-
isFocused ? 'tg-text-button' : undefined,
86-
]"
87-
>
76+
<p v-if="task.description" class="text-sm/4 text-muted font-normal">
8877
{{ task.description }}
8978
</p>
9079
</div>
@@ -101,12 +90,9 @@
10190
<UBadge
10291
v-if="task?.date"
10392
size="md"
104-
color="neutral"
105-
variant="outline"
93+
color="primary"
94+
variant="subtle"
10695
icon="i-lucide-calendar"
107-
:ui="{
108-
leadingIcon: 'text-dimmed',
109-
}"
11096
class="shrink-0"
11197
>
11298
{{ df.format(parseDate(task.date).toDate(getLocalTimeZone())) }}

apps/atrium-telegram/app/components/TaskList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-4 rounded-lg border border-default tg-bg group/list space-y-2.5">
2+
<div class="p-4 rounded-lg border border-default tg-bg-section group/list space-y-3.5">
33
<div class="flex flex-row gap-2 items-center justify-between">
44
<div class="flex flex-row gap-2.5 items-center">
55
<UPopover

apps/atrium-telegram/app/components/TasksTodaySwitch.vue

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,9 @@
99
root: 'flex-row-reverse items-center',
1010
label: 'mr-3 text-base/5 md:text-lg/5 font-semibold',
1111
}"
12-
@change="onChange"
1312
/>
1413
</template>
1514

1615
<script setup lang="ts">
17-
const toast = useToast()
1816
const taskStore = useTaskStore()
19-
20-
function onChange() {
21-
if (taskStore.isTodayOnly) {
22-
toast.add({
23-
title: 'Так уже лучше',
24-
description: 'Фокусируйся на сегодняшних задачах. Ничего не потерялось?',
25-
icon: 'i-lucide-notebook-text',
26-
color: 'secondary',
27-
duration: 2000,
28-
})
29-
} else {
30-
toast.add({
31-
title: 'Ого, как много задач!',
32-
description: 'Все и сразу. Ничего не потерялось. Или нет?',
33-
icon: 'i-lucide-notebook',
34-
color: 'secondary',
35-
duration: 2000,
36-
})
37-
}
38-
}
3917
</script>

apps/atrium-telegram/app/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<main class="tg-bg-secondary tg-text tg-safe-area">
2+
<main class="tg-bg tg-text tg-safe-area">
33
<slot />
44
</main>
55

apps/atrium-telegram/app/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<UTooltip :text="$t('app.update.user-photo.button')">
66
<UAvatar
77
:src="userStore?.avatarUrl ?? undefined"
8-
class="size-18 cursor-pointer hover:scale-95 active:scale-90 duration-200"
8+
class="size-14 cursor-pointer hover:scale-95 active:scale-90 duration-200"
99
@click="modalUploadUserAvatar.open()"
1010
/>
1111
</UTooltip>

0 commit comments

Comments
 (0)