Skip to content

Enhance UI styling for tab buttons and kernel selection #12

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

Closed
wants to merge 1 commit 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 website/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function App() {
{dataLoaded && kernels.length > 0 && !selectedIR && (
<div className="flex space-x-4">
<button
className={`px-3 py-2 text-sm font-medium rounded-md ${activeTab === "overview" ? "bg-gray-100 text-gray-900" : "text-gray-500 hover:text-gray-700"
className={`px-3 py-2 text-sm font-medium rounded-md ${activeTab === "overview" ? "bg-blue-700 text-white shadow-md" : "bg-blue-100 text-blue-700 hover:bg-blue-200"
}`}
onClick={() => {
setActiveTab("overview");
Expand All @@ -384,7 +384,7 @@ function App() {
Kernel Overview
</button>
<button
className={`px-3 py-2 text-sm font-medium rounded-md ${activeTab === "comparison" ? "bg-gray-100 text-gray-900" : "text-gray-500 hover:text-gray-700"
className={`px-3 py-2 text-sm font-medium rounded-md ${activeTab === "comparison" ? "bg-blue-700 text-white shadow-md" : "bg-blue-100 text-blue-700 hover:bg-blue-200"
}`}
onClick={() => {
setActiveTab("comparison");
Expand Down
10 changes: 5 additions & 5 deletions website/src/pages/KernelOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,18 @@ const KernelOverview: React.FC<KernelOverviewProps> = ({
<h2 className="text-xl font-semibold mb-4 text-gray-800">
Available Kernels
</h2>
<div className="grid grid-cols-1 gap-2">
<div className="flex flex-wrap gap-2">
{kernels.map((k, index) => (
<button
key={index}
className={`p-3 text-left rounded-md transition-colors ${
className={`px-4 py-2 text-sm rounded-md transition-colors whitespace-nowrap ${
index === selectedKernel
? "bg-blue-100 border border-blue-300"
: "bg-gray-50 border border-gray-200 hover:bg-blue-50"
? "bg-blue-100 border border-blue-300 text-blue-800"
: "bg-gray-50 border border-gray-200 hover:bg-blue-50 text-gray-800"
}`}
onClick={() => onSelectKernel(index)}
>
<div className="font-medium text-gray-800">{k.name}</div>
<div className="font-medium">{k.name}</div>
</button>
))}
</div>
Expand Down