Skip to content

Commit eea3b11

Browse files
author
Lasim
committed
feat(frontend): add showBorder prop to DsPageHeading component
1 parent 2562b15 commit eea3b11

File tree

7 files changed

+22
-14
lines changed

7 files changed

+22
-14
lines changed

services/frontend/src/components/ui/ds-page-heading/DsPageHeading.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
interface Props {
33
title: string
44
description?: string
5+
showBorder?: boolean
56
}
67
7-
defineProps<Props>()
8+
const props = withDefaults(defineProps<Props>(), {
9+
showBorder: true
10+
})
811
</script>
912

1013
<template>
11-
<header class="relative -mx-4 sm:-mx-6 lg:-mx-8 px-4 sm:px-6 lg:px-8 mb-8 after:absolute after:bottom-0 after:left-1/2 after:-translate-x-1/2 after:w-screen after:border-b after:border-neutral-200">
14+
<header
15+
:class="[
16+
'relative -mx-4 sm:-mx-6 lg:-mx-8 px-4 sm:px-6 lg:px-8 mb-8',
17+
props.showBorder ? 'after:absolute after:bottom-0 after:left-1/2 after:-translate-x-1/2 after:w-screen after:border-b after:border-neutral-200' : ''
18+
]"
19+
>
1220
<div class="flex flex-col lg:flex-row items-stretch lg:items-center justify-between gap-4 lg:gap-10 py-8">
1321
<!-- Left: Title, description, and optional content -->
1422
<div class="flex flex-col items-stretch justify-start flex-1 w-full gap-4">

services/frontend/src/views/mcp-server/installation/[id]/danger-zone.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ onUnmounted(() => {
4747

4848
<template>
4949
<NavbarLayout>
50-
<DsPageHeading v-if="installation" :title="installation.installation_name">
50+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
5151
<Breadcrumb>
5252
<BreadcrumbList>
5353
<BreadcrumbItem>
@@ -64,7 +64,7 @@ onUnmounted(() => {
6464
</BreadcrumbList>
6565
</Breadcrumb>
6666
</DsPageHeading>
67-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
67+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
6868
<Breadcrumb>
6969
<BreadcrumbList>
7070
<BreadcrumbItem>

services/frontend/src/views/mcp-server/installation/[id]/information.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ onUnmounted(() => {
4141

4242
<template>
4343
<NavbarLayout>
44-
<DsPageHeading v-if="installation" :title="installation.installation_name">
44+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
4545
<Breadcrumb>
4646
<BreadcrumbList>
4747
<BreadcrumbItem>
@@ -58,7 +58,7 @@ onUnmounted(() => {
5858
</BreadcrumbList>
5959
</Breadcrumb>
6060
</DsPageHeading>
61-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
61+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
6262
<Breadcrumb>
6363
<BreadcrumbList>
6464
<BreadcrumbItem>

services/frontend/src/views/mcp-server/installation/[id]/mcp-tools.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ onUnmounted(() => {
4747

4848
<template>
4949
<NavbarLayout>
50-
<DsPageHeading v-if="installation" :title="installation.installation_name">
50+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
5151
<Breadcrumb>
5252
<BreadcrumbList>
5353
<BreadcrumbItem>
@@ -64,7 +64,7 @@ onUnmounted(() => {
6464
</BreadcrumbList>
6565
</Breadcrumb>
6666
</DsPageHeading>
67-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
67+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
6868
<Breadcrumb>
6969
<BreadcrumbList>
7070
<BreadcrumbItem>

services/frontend/src/views/mcp-server/installation/[id]/requests.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ onUnmounted(() => {
4242

4343
<template>
4444
<NavbarLayout>
45-
<DsPageHeading v-if="installation" :title="installation.installation_name">
45+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
4646
<Breadcrumb>
4747
<BreadcrumbList>
4848
<BreadcrumbItem>
@@ -59,7 +59,7 @@ onUnmounted(() => {
5959
</BreadcrumbList>
6060
</Breadcrumb>
6161
</DsPageHeading>
62-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
62+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
6363
<Breadcrumb>
6464
<BreadcrumbList>
6565
<BreadcrumbItem>

services/frontend/src/views/mcp-server/installation/[id]/team-config.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ onUnmounted(() => {
5555

5656
<template>
5757
<NavbarLayout>
58-
<DsPageHeading v-if="installation" :title="installation.installation_name">
58+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
5959
<Breadcrumb>
6060
<BreadcrumbList>
6161
<BreadcrumbItem>
@@ -72,7 +72,7 @@ onUnmounted(() => {
7272
</BreadcrumbList>
7373
</Breadcrumb>
7474
</DsPageHeading>
75-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
75+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
7676
<Breadcrumb>
7777
<BreadcrumbList>
7878
<BreadcrumbItem>

services/frontend/src/views/mcp-server/installation/[id]/user-config.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ onUnmounted(() => {
4747

4848
<template>
4949
<NavbarLayout>
50-
<DsPageHeading v-if="installation" :title="installation.installation_name">
50+
<DsPageHeading v-if="installation" :title="installation.installation_name" :show-border="false">
5151
<Breadcrumb>
5252
<BreadcrumbList>
5353
<BreadcrumbItem>
@@ -64,7 +64,7 @@ onUnmounted(() => {
6464
</BreadcrumbList>
6565
</Breadcrumb>
6666
</DsPageHeading>
67-
<DsPageHeading v-else :title="t('mcpInstallations.title')">
67+
<DsPageHeading v-else :title="t('mcpInstallations.title')" :show-border="false">
6868
<Breadcrumb>
6969
<BreadcrumbList>
7070
<BreadcrumbItem>

0 commit comments

Comments
 (0)