Fix some more styles

This commit is contained in:
Gregory Schier
2024-08-15 05:58:09 -07:00
parent d924709b0c
commit 06517417b7
6 changed files with 11 additions and 12 deletions

View File

@@ -392,8 +392,8 @@ export function CommandPalette({ onClose }: { onClose: () => void }) {
); );
return ( return (
<div className="h-full w-[400px] grid grid-rows-[auto_minmax(0,1fr)] overflow-hidden"> <div className="h-full w-[400px] grid grid-rows-[auto_minmax(0,1fr)] overflow-hidden py-2">
<div className="px-2 py-2 w-full"> <div className="px-2 w-full">
<PlainInput <PlainInput
hideLabel hideLabel
leftSlot={ leftSlot={
@@ -410,7 +410,7 @@ export function CommandPalette({ onClose }: { onClose: () => void }) {
onKeyDownCapture={handleKeyDown} onKeyDownCapture={handleKeyDown}
/> />
</div> </div>
<div className="h-full px-1.5 overflow-y-auto pb-1"> <div className="h-full px-1.5 overflow-y-auto pt-2 pb-1">
{filteredGroups.map((g) => ( {filteredGroups.map((g) => (
<div key={g.key} className="mb-1.5 w-full"> <div key={g.key} className="mb-1.5 w-full">
<Heading size={2} className="!text-xs uppercase px-1.5 h-sm flex items-center"> <Heading size={2} className="!text-xs uppercase px-1.5 h-sm flex items-center">
@@ -459,8 +459,8 @@ function CommandPaletteItem({
justify="start" justify="start"
className={classNames( className={classNames(
'w-full h-sm flex items-center rounded px-1.5', 'w-full h-sm flex items-center rounded px-1.5',
'hover:text', 'hover:text-text',
active && 'bg-surface-highlight-secondary text', active && 'bg-surface-highlight',
!active && 'text-text-subtle', !active && 'text-text-subtle',
)} )}
> >

View File

@@ -188,7 +188,7 @@ function EventRow({
className={classNames( className={classNames(
'w-full grid grid-cols-[auto_minmax(0,3fr)_auto] gap-2 items-center text-left', 'w-full grid grid-cols-[auto_minmax(0,3fr)_auto] gap-2 items-center text-left',
'px-1.5 py-1 font-mono cursor-default group focus:outline-none rounded', 'px-1.5 py-1 font-mono cursor-default group focus:outline-none rounded',
isActive && '!bg-surface-highlight-secondary !text', isActive && '!bg-surface-highlight !text',
'text-text-subtle hover:text', 'text-text-subtle hover:text',
)} )}
> >

View File

@@ -872,9 +872,8 @@ function SidebarItem({
className={classNames( className={classNames(
'w-full flex gap-1.5 items-center h-xs px-1.5 rounded-md focus-visible:ring focus-visible:ring-border-focus outline-0', 'w-full flex gap-1.5 items-center h-xs px-1.5 rounded-md focus-visible:ring focus-visible:ring-border-focus outline-0',
editing && 'ring-1 focus-within:ring-focus', editing && 'ring-1 focus-within:ring-focus',
isActive && 'bg-surface-highlight-secondary text', isActive && 'bg-surface-highlight text',
!isActive && !isActive && 'text-text-subtle group-hover/item:text-text active:bg-surface-highlight',
'text-text-subtle group-hover/item:text-text active:bg-surface-highlight-secondary',
selected && useProminentStyles && '!bg-surface-active', selected && useProminentStyles && '!bg-surface-active',
)} )}
> >

View File

@@ -23,7 +23,7 @@ export function WindowControls({ className, onlyX }: Props) {
{!onlyX && ( {!onlyX && (
<> <>
<Button <Button
className="!h-full px-4 text-text-subtle hocus:text hocus:bg-surface-highlight-secondary rounded-none" className="!h-full px-4 text-text-subtle hocus:text hocus:bg-surface-highlight rounded-none"
color="custom" color="custom"
onClick={() => getCurrentWebviewWindow().minimize()} onClick={() => getCurrentWebviewWindow().minimize()}
> >

View File

@@ -9,7 +9,7 @@ export function FormattedError({ children }: Props) {
return ( return (
<pre <pre
className={classNames( className={classNames(
'font-mono text-sm w-full select-auto cursor-text bg-surface-highlight-secondary p-3 rounded', 'font-mono text-sm w-full select-auto cursor-text bg-surface-highlight p-3 rounded',
'whitespace-pre-wrap border border-danger border-dashed overflow-x-auto', 'whitespace-pre-wrap border border-danger border-dashed overflow-x-auto',
)} )}
> >

View File

@@ -6,7 +6,7 @@ export function InlineCode({ className, ...props }: HTMLAttributes<HTMLSpanEleme
<code <code
className={classNames( className={classNames(
className, className,
'font-mono text-shrink bg-surface-highlight-secondary border border-border-subtle', 'font-mono text-shrink bg-surface-highlight border border-border-subtle',
'px-1.5 py-0.5 rounded text shadow-inner break-words', 'px-1.5 py-0.5 rounded text shadow-inner break-words',
)} )}
{...props} {...props}