Skip to content

Commit

Permalink
🎨 Stantardise hover on error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
perdy committed Mar 4, 2025
1 parent 8007e9a commit 07492be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
2 changes: 0 additions & 2 deletions templates/src/apps/schemas/docs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { useEffect } from 'react'

import '@/styles/schemas/docs.css'

import ReactDOM from 'react-dom/client'

interface DocsPageProps {
Expand Down
15 changes: 0 additions & 15 deletions templates/src/styles/schemas/docs.css

This file was deleted.

6 changes: 3 additions & 3 deletions templates/src/ui/components/Docs.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ApiReferenceReact } from '@scalar/api-reference-react'

import DocsData from '@/data/schemas/Docs'
// import DocsData from '@/data/schemas/Docs'

export default function Docs() {
const docs = new DocsData()
// const docs = new DocsData()

return (
<ApiReferenceReact
configuration={{
isEditable: false,
spec: { content: docs.schema },
// spec: { content: docs.schema },
showSidebar: true,
hideModels: false,
hideDownloadButton: false,
Expand Down
6 changes: 3 additions & 3 deletions templates/src/ui/components/ErrorTraceback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ function TracebackListItem({ frame, isActive }: { frame: TFrame; isActive: boole

return (
<div
className={`border-primary-300 -mt-px border shadow-md transition duration-200 ${isActive ? 'bg-flama-300 shadow-flama-300' : 'bg-primary-100 hover:bg-primary-200 shadow-primary-300 hover:shadow-lg'}`}
className={`border-primary-300 shadow-primary-300 -mt-px border shadow-md transition duration-200 ${isActive ? 'bg-primary-200' : 'bg-primary-100 hover:bg-flama-300 hover:shadow-flama-300 hover:shadow-lg'}`}
>
<div
className={`flex h-12 w-full cursor-pointer items-center justify-start transition duration-200 ${
isActive
? 'border-flama-500 border-l-4'
: 'hover:border-primary-300 border-primary-100 pl-1 hover:border-l-4 hover:pl-0'
? 'border-primary-300 border-l-4'
: 'hover:border-flama-500 border-primary-100 pl-1 hover:border-l-4 hover:pl-0'
}`}
>
<div
Expand Down

0 comments on commit 07492be

Please sign in to comment.