Skip to content

Commit

Permalink
Add contrast to setting card inputs in dark mode on web app
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Jan 11, 2025
1 parent 309a2d3 commit eabb463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface/web/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export function ApiKeyCard() {
{apiKeys.map((key) => (
<TableRow key={key.token}>
<TableCell className="pl-0 py-3">{key.name}</TableCell>
<TableCell className="grid grid-flow-col grid-cols-[1fr_auto] bg-secondary rounded-xl p-3 m-1">
<TableCell className="grid grid-flow-col grid-cols-[1fr_auto] bg-secondary dark:bg-background rounded-xl p-3 m-1">
<span className="font-mono text-left w-[50px] md:w-[400px]">
{visibleApiKeys.has(key.token)
? key.token
Expand Down Expand Up @@ -611,7 +611,7 @@ export default function SettingsView() {
const title = "Settings";

const cardClassName =
"w-full lg:w-5/12 grid grid-flow-column border border-gray-300 shadow-md rounded-lg border dark:border-none dark:bg-muted border-opacity-50";
"w-full lg:w-5/12 grid grid-flow-column border border-gray-300 shadow-md rounded-lg border dark:border-none border-opacity-50 dark:bg-muted";

useEffect(() => {
setUserConfig(initialUserConfig);
Expand Down
1 change: 1 addition & 0 deletions src/interface/web/app/settings/settings.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ div.phoneInput input {
width: 100%;
padding: 0.5rem;
border: 1px solid hsla(var(--border));
background-color: hsla(var(--background));
border-radius: 0.25rem;
}

Expand Down

0 comments on commit eabb463

Please sign in to comment.