added read-only mode + visual improvements

This commit is contained in:
daniel31x13
2024-07-16 20:33:33 -04:00
parent 6d30912812
commit 9c5226ee51
25 changed files with 172 additions and 16 deletions
@@ -55,8 +55,11 @@ export default function LinkActions({
toast.dismiss(load);
response.ok &&
if (response.ok) {
toast.success(isAlreadyPinned ? t("link_unpinned") : t("link_unpinned"));
} else {
toast.error(response.data as string);
}
};
const deleteLink = async () => {
@@ -66,7 +69,11 @@ export default function LinkActions({
toast.dismiss(load);
response.ok && toast.success(t("deleted"));
if (response.ok) {
toast.success(t("deleted"));
} else {
toast.error(response.data as string);
}
};
return (
+6 -1
View File
@@ -157,7 +157,12 @@ export default function LinkCardCompact({
// linkInfo={showInfo}
/>
</div>
<div className="divider my-0 last:hidden h-[1px]"></div>
<div
className="last:hidden rounded-none"
style={{
borderTop: "1px solid var(--fallback-bc,oklch(var(--bc)/0.1))",
}}
></div>
</>
);
}