|
11 | 11 | :repoType="repoType" /> |
12 | 12 | </div> |
13 | 13 | <div class="pt-8 w-full"> |
14 | | - <div |
15 | | - :class="`flex flex-wrap justify-between items-center gap-2 ${ |
16 | | - repoType === 'space' ? 'xl:pl-[20px] md:pl-0' : '' |
17 | | - }`"> |
18 | | - <h3 class="text-lg font-normal text-gray-900 flex items-center gap-2"> |
19 | | - <!-- <SvgIcon |
20 | | - v-if="repoType === 'model'" |
21 | | - name="models" |
22 | | - width="18" |
23 | | - height="18" /> |
24 | | - <SvgIcon |
25 | | - v-if="repoType === 'dataset'" |
26 | | - name="datasets" |
27 | | - width="18" |
28 | | - height="18" /> |
29 | | - <SvgIcon |
30 | | - v-if="repoType === 'code'" |
31 | | - name="codes" |
32 | | - width="18" |
33 | | - height="18" /> |
34 | | - <SvgIcon |
35 | | - v-if="repoType === 'space'" |
36 | | - name="spaces" |
37 | | - width="18" |
38 | | - height="18" /> --> |
39 | | - <span class="capitalize"> |
40 | | - {{ $t(`${repoType}s.title`) }} |
41 | | - <span class="text-gray-600 text-md font-normal"> |
42 | | - {{ totalRepos }} |
| 14 | + <div class="flex flex-wrap justify-between items-center gap-2"> |
| 15 | + <div class="flex items-center gap-4 flex-nowrap w-auto"> |
| 16 | + <h3 class="text-lg font-normal text-gray-900 flex items-center gap-2"> |
| 17 | + <!-- <SvgIcon |
| 18 | + v-if="repoType === 'model'" |
| 19 | + name="models" |
| 20 | + width="18" |
| 21 | + height="18" /> |
| 22 | + <SvgIcon |
| 23 | + v-if="repoType === 'dataset'" |
| 24 | + name="datasets" |
| 25 | + width="18" |
| 26 | + height="18" /> |
| 27 | + <SvgIcon |
| 28 | + v-if="repoType === 'code'" |
| 29 | + name="codes" |
| 30 | + width="18" |
| 31 | + height="18" /> |
| 32 | + <SvgIcon |
| 33 | + v-if="repoType === 'space'" |
| 34 | + name="spaces" |
| 35 | + width="18" |
| 36 | + height="18" /> --> |
| 37 | + <span class="capitalize"> |
| 38 | + {{ $t(`${repoType}s.title`) }} |
| 39 | + <span class="text-gray-500 text-md font-light"> |
| 40 | + {{ totalRepos }} |
| 41 | + </span> |
43 | 42 | </span> |
44 | | - </span> |
45 | | - </h3> |
| 43 | + </h3> |
| 44 | + <ElInput |
| 45 | + v-model="nameFilterInput" |
| 46 | + class="!w-auto min-w-[180px]" |
| 47 | + :placeholder="$t(`${repoType}s.placeholder`)" |
| 48 | + :prefix-icon="Search" |
| 49 | + @change="filterChange" |
| 50 | + size="large" /> |
| 51 | + </div> |
46 | 52 | <div class="md:w-auto flex flex-wrap gap-2"> |
47 | 53 | <el-select |
48 | 54 | v-if="onPremise === 'true'" |
|
94 | 100 | :label="item.label" |
95 | 101 | :value="item.value" /> |
96 | 102 | </el-select> |
97 | | - |
98 | | - <ElInput |
99 | | - v-model="nameFilterInput" |
100 | | - class="!w-[180px]" |
101 | | - :placeholder="$t(`${repoType}s.placeholder`)" |
102 | | - :prefix-icon="Search" |
103 | | - @change="filterChange" |
104 | | - size="large" /> |
105 | 103 | <CsgButton |
106 | 104 | v-if="repoType === 'space'" |
107 | 105 | :name="$t('space.guide')" |
|
118 | 116 | </div> |
119 | 117 | <div |
120 | 118 | v-if="repoType === 'space'" |
121 | | - class="grid grid-cols-4 2xl:grid-cols-3 xl:grid-cols-2 lg:grid-cols-2 md:grid-cols-1 gap-4 mb-4 mt-[16px] xl:pl-[20px] md:pl-0"> |
| 119 | + class="grid grid-cols-4 2xl:grid-cols-3 xl:grid-cols-2 lg:grid-cols-2 md:grid-cols-1 gap-4 mb-4 mt-4 xl:pl-5 md:pl-0"> |
122 | 120 | <application-space-item |
123 | 121 | v-for="repo in reposData" |
124 | 122 | :repo="repo" |
125 | 123 | :repo-type="repoType" /> |
126 | 124 | </div> |
127 | 125 | <div |
128 | 126 | v-else-if="repoType === 'mcp'" |
129 | | - class="grid grid-cols-2 xl:grid-cols-1 xl:w-full justify-between gap-x-[16px] gap-y-[16px] mb-4 mt-[16px]" |
| 127 | + class="grid grid-cols-2 xl:grid-cols-1 xl:w-full justify-between gap-x-4 gap-y-4 mb-4 mt-4" |
130 | 128 | > |
131 | 129 | <McpItem v-for="repo in reposData" :mcp="repo" /> |
132 | 130 | </div> |
|
135 | 133 | </div> |
136 | 134 | <div |
137 | 135 | v-else |
138 | | - class="grid grid-cols-2 xl:grid-cols-1 xl:w-full justify-between gap-x-[16px] gap-y-[16px] mb-4 mt-[16px]"> |
| 136 | + class="grid grid-cols-2 xl:grid-cols-1 xl:w-full justify-between gap-x-4 gap-y-4 mb-4 mt-4"> |
139 | 137 | <repo-item |
140 | 138 | v-for="repo in reposData" |
141 | 139 | :repo="repo" |
|
0 commit comments