Skip to content

Commit

Permalink
Improve SDK ref styling (#486)
Browse files Browse the repository at this point in the history
- [x] improve version dropdown appearance in Safari
  • Loading branch information
0div authored Dec 2, 2024
2 parents c01e170 + 6859ce0 commit 731e88f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
4 changes: 3 additions & 1 deletion apps/web/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ function getSubModules(pkg, href, dirPath) {
})
}
}
} else if (['python-sdk', 'cli'].includes(pkg)) {
}

if (['python-sdk', 'cli', 'code-interpreter-python-sdk'].includes(pkg)) {
if (line.startsWith('## ')) {
const title = line.slice(2).trim()
if (title) {
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/components/SdkVersionSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function SdkVersionSelect({
return (
<select
className="
appearance-none
text-xs
text-brand-400
bg-transparent
Expand Down
33 changes: 1 addition & 32 deletions apps/web/src/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,7 @@
#sidebar::-webkit-scrollbar-thumb {
border-radius: 10px;
}

.dropdown-content {
display: none;
flex-direction: column;
position: absolute;
background-color: rgb(30, 41, 59);
z-index: 1;
}

.versions-dropdown {
color: rgb(229, 123, 0);
font-size: 1.3em;
font-weight: 600;
cursor: pointer;
margin-bottom: 1em !important;
p {
margin-bottom: 0px !important;
}
}

.versions-dropdown:hover .dropdown-content {
display: flex;
}

.version-link {
text-decoration: none !important;
}

.version-link:hover {
color: white !important;
}


.supabase-auth-ui_ui-button {
@apply rounded-lg;
}
Expand Down

0 comments on commit 731e88f

Please sign in to comment.