redesign smart playlist, add multisort

This commit is contained in:
jeffvli
2025-11-29 06:12:33 -08:00
parent 974e96c7b4
commit bb1705a774
8 changed files with 547 additions and 295 deletions
@@ -0,0 +1,6 @@
.preview {
padding: var(--theme-spacing-md);
font-family: var(--theme-content-font-family);
font-size: var(--theme-font-size-md);
background: var(--theme-colors-surface);
}
@@ -1,7 +1,13 @@
import styles from './json-preview.module.css';
interface JsonPreviewProps {
value: Record<string, any> | string;
}
export const JsonPreview = ({ value }: JsonPreviewProps) => {
return <pre style={{ userSelect: 'all' }}>{JSON.stringify(value, null, 2)}</pre>;
return (
<pre className={styles.preview} style={{ userSelect: 'all' }}>
{JSON.stringify(value, null, 4)}
</pre>
);
};