Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(web): text overflow ellipsis #1085

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/components/Editor/JSONViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const JSONViewerStyle: any = {
color: "#954121",
},
"hljs-number": {
color: "#b0caa4",
color: "#01A99D",
},
"hljs-string": {
color: "#0451a5",
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/app/database/CollectionListPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export default function CollectionListPanel() {
store.setCurrentDB(db);
}}
>
<div className="group flex w-full justify-between">
<div className="font-semibold leading-loose">
<div className="group flex w-full items-center justify-between">
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
<FileTypeIcon type="db" />
<span className="ml-2 text-base">{db.name}</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/app/database/PolicyListPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default function PolicyListPanel() {
store.setCurrentPolicy(item);
}}
>
<div className="group flex w-full justify-between">
<div className="font-semibold leading-loose">
<div className="group flex w-full items-center justify-between">
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
<FileTypeIcon type="policy" />
<span className="ml-2 text-base">{item.name}</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/app/functions/mods/FunctionPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,14 @@ export default function FunctionList() {
navigate(`/app/${currentApp?.appid}/${Pages.function}/${func?.name}`);
}}
>
<div className="font-semibold leading-loose">
<div className="overflow-hidden text-ellipsis whitespace-nowrap font-semibold leading-loose">
<FileTypeIcon type={FileType.ts} />
<span className="ml-2 text-base">{func?.name}</span>
</div>
<HStack spacing={1}>
{functionCache.getCache(func?.id, func?.source?.code) !==
func?.source?.code && (
<span className="inline-block h-1 w-1 flex-none rounded-full bg-warn-700"></span>
<span className="mt-[1px] inline-block h-1 w-1 flex-none rounded-full bg-warn-700"></span>
)}
<MoreButton
isHidden={func.name !== currentFunction?.name}
Expand Down