Skip to content

Commit 99a01ed

Browse files
LeezQmaslow
authored andcommitted
fix(web): text overflow ellipsis (#1085)
1 parent 48dbfb2 commit 99a01ed

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

web/src/components/Editor/JSONViewer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const JSONViewerStyle: any = {
3939
color: "#954121",
4040
},
4141
"hljs-number": {
42-
color: "#b0caa4",
42+
color: "#01A99D",
4343
},
4444
"hljs-string": {
4545
color: "#0451a5",

web/src/pages/app/database/CollectionListPanel/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export default function CollectionListPanel() {
103103
store.setCurrentDB(db);
104104
}}
105105
>
106-
<div className="group flex w-full justify-between">
107-
<div className="font-semibold leading-loose">
106+
<div className="group flex w-full items-center justify-between">
107+
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
108108
<FileTypeIcon type="db" />
109109
<span className="ml-2 text-base">{db.name}</span>
110110
</div>

web/src/pages/app/database/PolicyListPanel/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export default function PolicyListPanel() {
5656
store.setCurrentPolicy(item);
5757
}}
5858
>
59-
<div className="group flex w-full justify-between">
60-
<div className="font-semibold leading-loose">
59+
<div className="group flex w-full items-center justify-between">
60+
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
6161
<FileTypeIcon type="policy" />
6262
<span className="ml-2 text-base">{item.name}</span>
6363
</div>

web/src/pages/app/functions/mods/FunctionPanel/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ export default function FunctionList() {
190190
navigate(`/app/${currentApp?.appid}/${Pages.function}/${func?.name}`);
191191
}}
192192
>
193-
<div className="font-semibold leading-loose">
193+
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
194194
<FileTypeIcon type={FileType.ts} />
195195
<span className="ml-2 text-base">{func?.name}</span>
196196
</div>
197197
<HStack spacing={1}>
198198
{functionCache.getCache(func?.id, func?.source?.code) !==
199199
func?.source?.code && (
200-
<span className="inline-block h-1 w-1 flex-none rounded-full bg-warn-700"></span>
200+
<span className="mt-[1px] inline-block h-1 w-1 flex-none rounded-full bg-warn-700"></span>
201201
)}
202202
<MoreButton
203203
isHidden={func.name !== currentFunction?.name}

0 commit comments

Comments
 (0)