From 65889ada1fe92420d45918fb9319e5bb7f866803 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Fri, 30 Jun 2023 18:49:07 +0800 Subject: [PATCH] Fix styles Ensure styles are consistent per platform. --- .../components/AudioFilePreview/index.tsx | 6 +- .../src/components/DefaultLayout/index.tsx | 4 +- .../react-binary-data-canvas/index.tsx | 9 +- .../src/packages/react-prism/index.tsx | 9 +- .../src/pages/_document.tsx | 16 +- .../src/pages/categories/action/index.tsx | 444 +++++++++--------- .../src/pages/categories/blob/index.tsx | 4 +- .../src/pages/index.tsx | 42 +- .../src/styles/globals.css | 75 +++ .../src/styles/kitchen-sink.css | 83 +--- .../src/styles/theme.ts | 39 +- .../tailwind.config.js | 12 +- 12 files changed, 368 insertions(+), 375 deletions(-) diff --git a/packages/web-kitchensink-reactnext/src/categories/blob/react/components/AudioFilePreview/index.tsx b/packages/web-kitchensink-reactnext/src/categories/blob/react/components/AudioFilePreview/index.tsx index ebf0b44..2c303aa 100644 --- a/packages/web-kitchensink-reactnext/src/categories/blob/react/components/AudioFilePreview/index.tsx +++ b/packages/web-kitchensink-reactnext/src/categories/blob/react/components/AudioFilePreview/index.tsx @@ -124,8 +124,8 @@ export const AudioFilePreview = React.forwardRef Math.floor(Number(c) / 2)).join(' ')})`} + progressColor={`rgb(${theme['color-primary']})`} + waveColor={`rgb(${theme['color-primary'].split(' ').map((c) => Math.floor(Number(c) / 2)).join(' ')})`} interact // waveColor={`rgb(${theme.primary})`} // barHeight={4} @@ -143,7 +143,7 @@ export const AudioFilePreview = React.forwardRef = ({ { title && ( - + ) } -
+
{children}
diff --git a/packages/web-kitchensink-reactnext/src/packages/react-binary-data-canvas/index.tsx b/packages/web-kitchensink-reactnext/src/packages/react-binary-data-canvas/index.tsx index fbde8e3..b718377 100644 --- a/packages/web-kitchensink-reactnext/src/packages/react-binary-data-canvas/index.tsx +++ b/packages/web-kitchensink-reactnext/src/packages/react-binary-data-canvas/index.tsx @@ -44,6 +44,7 @@ export const BinaryDataCanvas = React.forwardRef @@ -83,11 +81,6 @@ export const BinaryDataCanvas = React.forwardRef {headers && new Array(BYTES_PER_LINE).fill(0).map((_, i) => ( diff --git a/packages/web-kitchensink-reactnext/src/packages/react-prism/index.tsx b/packages/web-kitchensink-reactnext/src/packages/react-prism/index.tsx index fa5a3e5..2bab44f 100644 --- a/packages/web-kitchensink-reactnext/src/packages/react-prism/index.tsx +++ b/packages/web-kitchensink-reactnext/src/packages/react-prism/index.tsx @@ -34,18 +34,11 @@ export const Prism = React.forwardRef(({ 'react-prism', className, )} - style={{ - ...(style ?? {}), - - }} + style={style} > {lineNumbers && (
diff --git a/packages/web-kitchensink-reactnext/src/pages/_document.tsx b/packages/web-kitchensink-reactnext/src/pages/_document.tsx
index d4a4cb5..4e96b4b 100644
--- a/packages/web-kitchensink-reactnext/src/pages/_document.tsx
+++ b/packages/web-kitchensink-reactnext/src/pages/_document.tsx
@@ -3,11 +3,17 @@ import theme from '@/styles/theme'
 
 export default function Document() {
   return (
-    
-      
-        
+    
+      
+