Skip to content

Commit 3300b90

Browse files
committed
Bug fixes and improvements
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent 2af6c27 commit 3300b90

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

frontend/app/components/modules/project/components/shared/header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<lfx-maintain-height class="sticky top-14 lg:top-17 z-10">
3-
<div class="bg-white outline outline-neutral-200">
3+
<div class="bg-white outline outline-1 outline-neutral-200">
44
<section class="container">
55
<div
66
v-if="props.project"

frontend/app/components/modules/project/components/shared/header/custom-date-range-picker.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
selection-mode="range"
1515
:manual-input="false"
1616
:number-of-months="2"
17+
:max-date="new Date()"
1718
/>
1819
</div>
1920
<div class="flex justify-end gap-4 pt-6">
@@ -27,7 +28,7 @@
2728
:disabled="!dateRange || !dateRange[0] || !dateRange[1]"
2829
@click="select()"
2930
>
30-
Confirm
31+
Apply
3132
</lfx-button>
3233
</div>
3334
</div>

frontend/app/components/shared/layout/search/search-result.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<div>
33
<!-- Tabs -->
4-
<div class="p-3 hidden sm:block">
4+
<div
5+
v-if="!noResult"
6+
class="p-3 hidden sm:block"
7+
>
58
<lfx-tabs
69
v-model="tab"
710
:tabs="tabs"
@@ -133,8 +136,7 @@
133136

134137
<!-- No results -->
135138
<section
136-
v-if="tab === 'all' && props.projects.length === 0
137-
&& props.repositories.length === 0 && props.collections.length === 0"
139+
v-if="tab === 'all' && noResult"
138140
class="px-3 py-12 flex flex-col items-center"
139141
>
140142
<lfx-icon
@@ -174,6 +176,8 @@ const repos = computed(() => props.repositories.map((repo) => ({
174176
name: getRepoNameFromUrl(repo.slug),
175177
})))
176178
179+
const noResult = computed(() => !props.projects.length && !props.repositories.length && !props.collections.length)
180+
177181
const tabs = [
178182
{
179183
value: 'all',

frontend/app/components/uikit/datepicker/datepicker.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,11 @@
7676
@apply bg-brand-500 text-white #{!important};
7777
}
7878
}
79+
80+
&-today{
81+
span{
82+
@apply bg-brand-100;
83+
84+
}
85+
}
7986
}

0 commit comments

Comments
 (0)