color / style updates
This commit is contained in:
parent
daa1c0ac80
commit
cd5f4a7266
4 changed files with 10 additions and 8 deletions
|
|
@ -134,7 +134,7 @@ export function parseColorForHex(colorVar: string): string {
|
|||
}
|
||||
|
||||
export const Button = styled.button`
|
||||
padding: 10px 12px;
|
||||
padding: 6px 12px;
|
||||
margin: 8px 0;
|
||||
border-radius: ${defaultBorderRadius};
|
||||
|
||||
|
|
@ -162,13 +162,13 @@ type NumberInputProps = {
|
|||
};
|
||||
|
||||
export const SecondaryButton = styled.button`
|
||||
padding: 10px 12px;
|
||||
padding: 6px 12px;
|
||||
margin: 8px 0;
|
||||
border-radius: ${defaultBorderRadius};
|
||||
|
||||
border: 1px solid ${vscForeground};
|
||||
border: 1px solid ${vscInputBorder};
|
||||
color: ${vscForeground};
|
||||
background-color: inherit;
|
||||
background-color: ${vscInputBackground};
|
||||
|
||||
&:disabled {
|
||||
color: gray;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export function ScopeSelect() {
|
|||
return (
|
||||
<Listbox value={value} onChange={handleChange}>
|
||||
<div className="relative">
|
||||
<Listbox.Button className="border-vsc-foreground text-vsc-foreground hover:bg-vsc-background flex w-full max-w-[400px] cursor-pointer items-center gap-0.5 rounded border border-solid bg-transparent p-2 hover:opacity-90">
|
||||
<Listbox.Button className="border-vsc-input-border text-vsc-foreground hover:bg-vsc-background bg-vsc-input-background flex w-full max-w-[400px] cursor-pointer items-center gap-0.5 rounded border border-solid p-2 hover:opacity-90">
|
||||
<div className="flex w-full items-center justify-between">
|
||||
<div className="flex items-center gap-2">
|
||||
{selectedDisplay?.iconUrl ? (
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ function ConfigPage() {
|
|||
onClick={handleOpenConfig}
|
||||
className="!my-0 max-w-[400px]"
|
||||
>
|
||||
Open configuration file
|
||||
Open config file
|
||||
</SecondaryButton>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -365,9 +365,11 @@ export function Chat() {
|
|||
|
||||
useAutoScroll(stepsDivRef, history);
|
||||
|
||||
const showPageHeader = isInEditMode || usePlatform;
|
||||
|
||||
return (
|
||||
<>
|
||||
{(isInEditMode || usePlatform) && (
|
||||
{showPageHeader && (
|
||||
<PageHeader
|
||||
title={isInEditMode ? "Edit Mode" : ""}
|
||||
onTitleClick={
|
||||
|
|
@ -388,7 +390,7 @@ export function Chat() {
|
|||
|
||||
<StepsDiv
|
||||
ref={stepsDivRef}
|
||||
className={`overflow-y-scroll ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${history.length > 0 ? "flex-1" : ""}`}
|
||||
className={`overflow-y-scroll ${showPageHeader ? "" : "pt-[8px]"} ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${history.length > 0 ? "flex-1" : ""}`}
|
||||
>
|
||||
{highlights}
|
||||
{history.map((item, index: number) => (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue