aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/dashboard/bookmarks')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx8
-rw-r--r--apps/web/components/dashboard/bookmarks/EditorCard.tsx13
-rw-r--r--apps/web/components/dashboard/bookmarks/TagList.tsx4
3 files changed, 15 insertions, 10 deletions
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
index be061148..a0437c71 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
@@ -46,7 +46,7 @@ function BottomRow({
}) {
return (
<div className="justify flex w-full shrink-0 justify-between text-gray-500">
- <div className="flex items-center gap-2 overflow-hidden text-nowrap">
+ <div className="flex items-center gap-2 overflow-hidden text-nowrap font-light">
{footer && <>{footer}•</>}
<Link
href={`/dashboard/preview/${bookmark.id}`}
@@ -122,7 +122,7 @@ function ListView({
return (
<div
className={cn(
- "relative flex max-h-96 gap-4 overflow-hidden rounded-lg p-2 shadow-md",
+ "relative flex max-h-96 gap-4 overflow-hidden rounded-lg p-2",
className,
)}
>
@@ -167,7 +167,7 @@ function GridView({
return (
<div
className={cn(
- "relative flex flex-col overflow-hidden rounded-lg shadow-md",
+ "relative flex flex-col overflow-hidden rounded-lg",
className,
fitHeight && layout != "grid" ? "max-h-96" : "h-96",
)}
@@ -200,7 +200,7 @@ function CompactView({ bookmark, title, footer, className }: Props) {
return (
<div
className={cn(
- "relative flex flex-col overflow-hidden rounded-lg shadow-md",
+ "relative flex flex-col overflow-hidden rounded-lg",
className,
"max-h-96",
)}
diff --git a/apps/web/components/dashboard/bookmarks/EditorCard.tsx b/apps/web/components/dashboard/bookmarks/EditorCard.tsx
index 1938fdec..75745bad 100644
--- a/apps/web/components/dashboard/bookmarks/EditorCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/EditorCard.tsx
@@ -148,7 +148,7 @@ export default function EditorCard({ className }: { className?: string }) {
};
const cardHeight = useBookmarkLayoutSwitch({
grid: "h-96",
- masonry: "h-96",
+ masonry: "h-48",
list: undefined,
compact: undefined,
});
@@ -195,10 +195,10 @@ export default function EditorCard({ className }: { className?: string }) {
ref={inputRef}
disabled={isPending}
className={cn(
- "h-full w-full border-none p-0 text-lg focus-visible:ring-0",
+ "text-md h-full w-full border-none p-0 font-light focus-visible:ring-0",
{ "resize-none": bookmarkLayout !== "list" },
)}
- placeholder={t("editor.placeholder")}
+ placeholder={t("editor.placeholder_v2")}
onKeyDown={(e) => {
if (demoMode) {
return;
@@ -218,7 +218,12 @@ export default function EditorCard({ className }: { className?: string }) {
/>
</FormControl>
</FormItem>
- <ActionButton loading={isPending} type="submit" variant="default">
+ <ActionButton
+ disabled={!form.formState.dirtyFields.text}
+ loading={isPending}
+ type="submit"
+ variant="secondary"
+ >
{form.formState.dirtyFields.text
? demoMode
? t("editor.disabled_submissions")
diff --git a/apps/web/components/dashboard/bookmarks/TagList.tsx b/apps/web/components/dashboard/bookmarks/TagList.tsx
index 49a1156c..593a269b 100644
--- a/apps/web/components/dashboard/bookmarks/TagList.tsx
+++ b/apps/web/components/dashboard/bookmarks/TagList.tsx
@@ -29,8 +29,8 @@ export default function TagList({
<Link
key={t.id}
className={cn(
- badgeVariants({ variant: "outline" }),
- "text-nowrap font-normal hover:bg-foreground hover:text-secondary",
+ badgeVariants({ variant: "secondary" }),
+ "text-nowrap font-light text-gray-700 hover:bg-foreground hover:text-secondary dark:text-gray-400",
)}
href={`/dashboard/tags/${t.id}`}
>