Skip to content

Commit 8d4fca0

Browse files
committed
ui inhancement
1 parent 9938361 commit 8d4fca0

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

‎frontend/src/feature/quote/dialog/recycle-bin.dialog.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function RecycleBinComponent(props: Props) {
8888
{data?.map((quote, i) => (
8989
<div className="flex justify-between border-2 rounded-lg p-2">
9090
<div
91-
key={'bin'+quote.id}
91+
key={'bin' + quote.id}
9292
className=" "
9393
dangerouslySetInnerHTML={{
9494
__html: sanitizeHTML(quote?.text!)
@@ -111,6 +111,13 @@ function RecycleBinComponent(props: Props) {
111111
</div>
112112

113113
))}
114+
{
115+
!data?.length && (
116+
<p className="w-full flex items-center justify-center h-48 text-muted-foreground">
117+
No secrets written. For now.
118+
</p>
119+
)
120+
}
114121
</div>
115122

116123

‎frontend/src/feature/quote/dialog/setting.dialog.tsx‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ function SettingComponent(props: Props) {
4949
const { view, setView } = useCardViewStore()
5050
const lastDeployed = useLastDeployed()
5151
const controlHeightClass = " h-6!"
52+
const fontClassXxs = "text-[0.5rem]"
53+
5254
return (
5355
<Dialog open={open} onOpenChange={setOpen}
5456

@@ -75,9 +77,9 @@ function SettingComponent(props: Props) {
7577
</DialogDescription>
7678
</DialogHeader>
7779
<Separator className="bg-border" />
78-
<div className="flex flex-col gap-1 text-xs">
79-
<p className="text-muted-foreground text-xs">App Style</p>
80-
<div className="flex justify-between items-center tex-sm">
80+
<div className="flex flex-col gap-1 ">
81+
<p className={cn("text-muted-foreground ", fontClassXxs)}>App Style</p>
82+
<div className="flex justify-between items-center text-xs">
8183
Appearance
8284
<Select value={theme} onValueChange={(value: ThemeMode) => setTheme(value)}>
8385
<SelectTrigger className={cn("text-xs", controlHeightClass)}>
@@ -147,8 +149,8 @@ function SettingComponent(props: Props) {
147149

148150
<Separator className="bg-border" />
149151

150-
<div className="flex flex-col gap-2">
151-
<p className="text-muted-foreground text-xs">Card Style</p>
152+
<div className={cn("flex flex-col gap-1", )}>
153+
<p className={cn("text-muted-foreground ", fontClassXxs)}>Card Style</p>
152154
<div className="flex justify-between items-center text-xs">
153155
Show Info
154156
<Select value={info} onValueChange={(value: ShowInfo) => setInfo(value)}>
@@ -214,8 +216,8 @@ function SettingComponent(props: Props) {
214216

215217
<Separator className="bg-border" />
216218

217-
<div className="flex flex-col gap-2">
218-
<p className="text-muted-foreground text-xs">My Profile</p>
219+
<div className="flex flex-col gap-1">
220+
<p className={cn("text-muted-foreground ", fontClassXxs)}>My Profile</p>
219221
<div className="flex justify-between items-center text-xs ">
220222
Profile
221223
<Link to="/me" title='me' aria-label="me-link" className="text-primary">
@@ -231,7 +233,7 @@ function SettingComponent(props: Props) {
231233

232234
<Separator className="bg-border" />
233235
<div className="flex flex-col gap-2">
234-
<p className="text-muted-foreground text-xs">Other</p>
236+
<p className={cn("text-muted-foreground ", fontClassXxs)}>Other</p>
235237
<div className="flex justify-between items-center text-xs ">
236238
Recycle Bin
237239
<Suspense fallback={<ButtonLoader />}>

0 commit comments

Comments
 (0)