Skip to content
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

Added custom css for scrollbar #267

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/lib/.server/llm/api-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function getAPIKey(cloudflareEnv: Env, provider: string, userApiKeys?: Re
case 'Deepseek':
return env.DEEPSEEK_API_KEY || cloudflareEnv.DEEPSEEK_API_KEY
case 'Mistral':
return env.MISTRAL_API_KEY || cloudflareEnv.MISTRAL_API_KEY;
return env.MISTRAL_API_KEY || cloudflareEnv.MISTRAL_API_KEY;
case "OpenAILike":
return env.OPENAI_LIKE_API_KEY || cloudflareEnv.OPENAI_LIKE_API_KEY;
case "xAI":
Expand All @@ -51,6 +51,6 @@ export function getBaseURL(cloudflareEnv: Env, provider: string) {
}
return baseUrl;
default:
return "";
return '';
}
}
19 changes: 19 additions & 0 deletions app/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,22 @@ body {
height: 100%;
width: 100%;
}

::-webkit-scrollbar {
width: 20px;
height: 20px;
}
::-webkit-scrollbar-thumb {
background-color: #3F3f3f;
border-radius: 20px;
border: 6px solid transparent;
background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
background-color: #262626;
}
::-webkit-scrollbar-corner { background-color: transparent;}

/* there may be a better
location to put this, but I don't know
where, so for now I'll place it here */