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
+1
View File
@@ -117,6 +117,7 @@ export const ResponsePane = memo(function ResponsePane({ style, className, activ
> >
{activeResponse && ( {activeResponse && (
<HStack <HStack
as="p"
space={2} space={2}
className="whitespace-nowrap w-full pl-3 overflow-x-auto font-mono text-sm" className="whitespace-nowrap w-full pl-3 overflow-x-auto font-mono text-sm"
> >
+1 -1
View File
@@ -56,7 +56,7 @@ export const VStack = forwardRef(function VStack(
}); });
type BaseStackProps = HTMLAttributes<HTMLElement> & { type BaseStackProps = HTMLAttributes<HTMLElement> & {
as?: ComponentType | 'ul' | 'label' | 'form'; as?: ComponentType | 'ul' | 'label' | 'form' | 'p';
space?: keyof typeof gapClasses; space?: keyof typeof gapClasses;
alignItems?: 'start' | 'center' | 'stretch' | 'end'; alignItems?: 'start' | 'center' | 'stretch' | 'end';
justifyContent?: 'start' | 'center' | 'end' | 'between'; justifyContent?: 'start' | 'center' | 'end' | 'between';
+12 -4
View File
@@ -19,10 +19,18 @@
} }
/* Disable user selection to make it more "app-like" */ /* Disable user selection to make it more "app-like" */
:not(a), h1,
:not(input):not(textarea), h2,
:not(input):not(textarea)::after, h3,
:not(input):not(textarea)::before { h4,
h5,
h6,
p,
blockquote,
label,
code,
pre,
li {
@apply select-none cursor-default; @apply select-none cursor-default;
} }