Skip to content

Commit

Permalink
fix(styles): category & article card view
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Jan 15, 2025
1 parent 7514c8f commit d83388d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
6 changes: 1 addition & 5 deletions desk/src/components/ListRows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,4 @@ let showGroupedRows = computed(() => {
});
</script>

<style>
.row > button > span > div > :nth-child(-n + 2) > * {
margin-left: 20px;
}
</style>
<style></style>
6 changes: 3 additions & 3 deletions desk/src/components/knowledge-base/ArticleCard2.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<router-link
class="flex flex-col gap-3 border border-gray-200 rounded p-4 pb-2 cursor-pointer h-56 hover:bg-surface-gray-2 transition-all"
class="flex flex-col gap-3 border border-gray-200 rounded p-4 pb-2 cursor-pointer h-30 hover:bg-surface-gray-2 transition-all"
:to="{
name: 'ArticlePublic',
params: {
Expand All @@ -11,10 +11,10 @@
<!-- Title and sub content -->
<div class="flex gap-3 flex-1">
<div class="flex flex-col gap-1.5 w-full">
<h5 class="text-lg font-semibold text-gray-800 truncate text-wrap">
<h5 class="text-base font-medium text-gray-800 truncate">
{{ article.title }}
</h5>
<div class="text-sm text-gray-600">
<div class="text-p-sm text-gray-600 line-clamp-2">
{{ article.content }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion desk/src/components/knowledge-base/CategoryFolder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div>
<FeatherIcon
name="folder"
class="fill-ink-blue-link h-8 w-8 text-blue-400 -ml-[2px]"
class="fill-ink-gray-2 h-8 w-8 text-gray-300 -ml-[2px]"
/>
</div>
<div class="gap-1 flex flex-col">
Expand Down
4 changes: 2 additions & 2 deletions desk/src/pages/knowledge-base/Articles.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="p-5 pb-10 md:pb-0 px-10 w-full overflow-scroll items-center">
<div class="p-5 pb-10 px-10 w-full overflow-scroll items-center">
<LayoutHeader>
<template #left-header>
<Breadcrumbs :items="breadcrumbs" />
Expand All @@ -8,7 +8,7 @@
<div
class="pt-4 sm:px-5 w-full flex flex-col gap-2 max-w-4xl 2xl:max-w-5xl"
>
<div v-if="articles.data" class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div v-if="articles.data" class="grid grid-cols-1 md:grid-cols-2 gap-6">
<ArticleCard2
v-for="article in articles.data"
:article="article"
Expand Down
2 changes: 1 addition & 1 deletion desk/src/pages/knowledge-base/KnowledgeBaseCustomer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="p-5 pb-10 md:pb-0 px-10 w-full overflow-scroll items-center">
<div class="p-5 pb-10 px-10 w-full overflow-scroll items-center">
<LayoutHeader>
<template #left-header>
<div class="text-lg font-medium text-gray-900">Knowledge base</div>
Expand Down
5 changes: 3 additions & 2 deletions desk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,11 @@ export interface Article {
creation: string;
content: string;
modified: string;
feedback: FeedbackAction;
}

export type FeedbackAction = 0 | 1 | 2; // 0: neutral, 1: like, 2: dislike

export interface SubCategory {
name: string;
category_name: string;
Expand Down Expand Up @@ -258,8 +261,6 @@ export interface BadgeStatus {
theme: string;
}

export type FeedbackAction = 0 | 1 | 2; // 0: neutral, 1: like, 2: dislike

export interface View {
view_type: string;
group_by_field: string;
Expand Down

0 comments on commit d83388d

Please sign in to comment.