-
Notifications
You must be signed in to change notification settings - Fork 890
Remove card border #291
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
Remove card border #291
Changes from all commits
d264bd7
fbe164b
09ca6bc
509ba7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ export default function ServerCard({ serverInfo }: { serverInfo: NezhaAPISafe }) | |
| <Link onClick={saveSession} href={`/server/${id}`} prefetch={true}> | ||
| <Card | ||
| className={cn( | ||
| "flex cursor-pointer flex-col items-center justify-start gap-3 p-3 hover:border-stone-300 hover:shadow-md md:px-5 dark:hover:border-stone-700", | ||
| "flex cursor-pointer flex-col items-center justify-start gap-3 p-3 transition-all hover:shadow-sm hover:ring-stone-300 md:px-5 dark:hover:ring-stone-700", | ||
|
||
| { | ||
| "flex-col": fixedTopServerName, | ||
| "lg:flex-row": !fixedTopServerName, | ||
|
|
@@ -133,7 +133,7 @@ export default function ServerCard({ serverInfo }: { serverInfo: NezhaAPISafe }) | |
| <Link onClick={saveSession} href={`/server/${id}`} prefetch={true}> | ||
| <Card | ||
| className={cn( | ||
| "flex cursor-pointer flex-col items-center justify-start gap-3 p-3 hover:border-stone-300 hover:shadow-md md:px-5 dark:hover:border-stone-700", | ||
| "flex cursor-pointer flex-col items-center justify-start gap-3 p-3 transition-all hover:shadow-sm hover:ring-stone-300 md:px-5 dark:hover:ring-stone-700", | ||
|
||
| showNetTransfer ? "min-h-[123px] lg:min-h-[91px]" : "min-h-[93px] lg:min-h-[61px]", | ||
| { | ||
| "flex-col": fixedTopServerName, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export default function ServerCardInline({ serverInfo }: { serverInfo: NezhaAPIS | |
| <Link onClick={saveSession} href={`/server/${id}`} prefetch={true}> | ||
| <Card | ||
| className={cn( | ||
| "flex w-full min-w-[900px] cursor-pointer items-center justify-start gap-3 p-3 hover:border-stone-300 hover:shadow-md md:px-5 lg:flex-row dark:hover:border-stone-700", | ||
| "flex w-full min-w-[900px] cursor-pointer items-center justify-start gap-3 p-3 transition-all hover:shadow-sm hover:ring-stone-300 md:px-5 lg:flex-row dark:hover:ring-stone-700", | ||
|
||
| )} | ||
| > | ||
| <section | ||
|
|
@@ -123,7 +123,7 @@ export default function ServerCardInline({ serverInfo }: { serverInfo: NezhaAPIS | |
| <Link onClick={saveSession} href={`/server/${id}`} prefetch={true}> | ||
| <Card | ||
| className={cn( | ||
| "flex min-h-[61px] min-w-[900px] flex-row items-center justify-start gap-3 p-3 hover:border-stone-300 hover:shadow-md md:px-5 dark:hover:border-stone-700", | ||
| "flex min-h-[61px] min-w-[900px] flex-row items-center justify-start gap-3 p-3 transition-all hover:shadow-sm hover:ring-stone-300 md:px-5 lg:flex-row dark:hover:ring-stone-700", | ||
|
||
| )} | ||
| > | ||
| <section | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -68,7 +68,7 @@ export function SignIn() { | |||||||||||||||||||||
| </label> | ||||||||||||||||||||||
| <button | ||||||||||||||||||||||
| type="submit" | ||||||||||||||||||||||
| className="flex w-fit items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-neutral-200/40 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" | ||||||||||||||||||||||
| className="flex w-fit cursor-pointer items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" | ||||||||||||||||||||||
|
||||||||||||||||||||||
| className="flex w-fit cursor-pointer items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" | |
| className="flex w-fit cursor-pointer items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-md shadow-stone-200/50 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" |
Copilot
AI
Nov 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent shadow color: The shadow color changes from shadow-neutral-200/40 to shadow-stone-200/50. This should use stone for consistency with other changes in this PR that also use stone-200/50 (e.g., Card component, ThemeSwitcher, LanguageSwitcher).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabled submit button will still look clickable due to cursor-pointer.
With cursor-pointer on the button, the mouse cursor remains a pointer even when disabled, which can be confusing. Consider either dropping cursor-pointer or adding disabled-specific cursor/opacity styles.
- <button
- type="submit"
- className="flex w-fit cursor-pointer items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none"
- disabled={loading}
- >
+ <button
+ type="submit"
+ className="flex w-fit items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 disabled:cursor-not-allowed disabled:opacity-60 dark:border-stone-800 dark:shadow-none"
+ disabled={loading}
+ >📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <button | |
| type="submit" | |
| className="flex w-fit items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-neutral-200/40 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" | |
| className="flex w-fit cursor-pointer items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 dark:border-stone-800 dark:shadow-none" | |
| disabled={loading} | |
| <button | |
| type="submit" | |
| className="flex w-fit items-center gap-1 rounded-[8px] border border-stone-300 bg-card px-1.5 py-0.5 font-semibold text-card-foreground text-sm shadow-lg shadow-stone-200/50 transition-all hover:brightness-95 disabled:cursor-not-allowed disabled:opacity-60 dark:border-stone-800 dark:shadow-none" | |
| disabled={loading} | |
| > |
🤖 Prompt for AI Agents
In components/SignIn.tsx around lines 69-72 the submit button always has
cursor-pointer which makes it appear clickable when disabled; change the styling
so the cursor and visual state reflect the disabled/loading state — remove the
unconditional cursor-pointer and instead apply cursor-not-allowed (and
optionally reduced opacity like opacity-70 and/or pointer-events-none) when
disabled/loading, and keep cursor-pointer only when not disabled; implement this
by conditionally composing the className (ternary or classnames utility) based
on the loading/disabled flag so the button shows a disabled cursor and visual
cue when disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent ring removal: The "All" card removes
ring-transparentfrom the default state but the other cards (Online, Offline, Favorite) retainring-1with no explicit color. This creates an inconsistent visual appearance where the "All" card may have a visible ring by default (inheriting from the Card base component) while others havering-1. Consider either addingring-1to the "All" card or removingring-1from the other cards for consistency.