Better native app styling. Hopefully this fixes the issue!

Fixes #97
This commit is contained in:
Gregory Schier
2024-09-19 06:19:16 -07:00
parent 1d9a001036
commit 24ea76e753
3 changed files with 14 additions and 5 deletions

View File

@@ -117,6 +117,7 @@ export const ResponsePane = memo(function ResponsePane({ style, className, activ
>
{activeResponse && (
<HStack
as="p"
space={2}
className="whitespace-nowrap w-full pl-3 overflow-x-auto font-mono text-sm"
>

View File

@@ -56,7 +56,7 @@ export const VStack = forwardRef(function VStack(
});
type BaseStackProps = HTMLAttributes<HTMLElement> & {
as?: ComponentType | 'ul' | 'label' | 'form';
as?: ComponentType | 'ul' | 'label' | 'form' | 'p';
space?: keyof typeof gapClasses;
alignItems?: 'start' | 'center' | 'stretch' | 'end';
justifyContent?: 'start' | 'center' | 'end' | 'between';

View File

@@ -19,10 +19,18 @@
}
/* Disable user selection to make it more "app-like" */
:not(a),
:not(input):not(textarea),
:not(input):not(textarea)::after,
:not(input):not(textarea)::before {
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
label,
code,
pre,
li {
@apply select-none cursor-default;
}