ui polish

This commit is contained in:
Nate 2025-03-23 13:25:41 -07:00
parent 588dda8822
commit f5802fd770
4 changed files with 27 additions and 8 deletions

View file

@ -11,7 +11,12 @@ import { MessageModes } from "core";
import { modelSupportsTools } from "core/llm/autodetect";
import { useEffect } from "react";
import styled from "styled-components";
import { defaultBorderRadius, lightGray, vscInputBackground } from "..";
import {
defaultBorderRadius,
lightGray,
vscCommandCenterInactiveBorder,
vscInputBackground,
} from "..";
import { useAppDispatch, useAppSelector } from "../../redux/hooks";
import { selectDefaultModel } from "../../redux/slices/configSlice";
import {
@ -51,7 +56,7 @@ const StyledListboxOptions = styled(Listbox.Options)`
display: flex;
flex-direction: column;
border-radius: ${defaultBorderRadius};
border: 0.5px solid ${lightGray};
border: 1px solid ${vscCommandCenterInactiveBorder};
background-color: ${vscInputBackground};
`;

View file

@ -9,7 +9,12 @@ import {
import { useContext, useEffect, useRef, useState } from "react";
import { useDispatch } from "react-redux";
import styled from "styled-components";
import { defaultBorderRadius, lightGray, vscInputBackground } from "..";
import {
defaultBorderRadius,
lightGray,
vscCommandCenterInactiveBorder,
vscInputBackground,
} from "..";
import { useAuth } from "../../context/Auth";
import { IdeMessengerContext } from "../../context/IdeMessenger";
import AddModelForm from "../../forms/AddModelForm";
@ -66,7 +71,7 @@ const StyledListboxOptions = styled(Listbox.Options)<{ $showabove: boolean }>`
font-size: ${fontSize(-3)};
border-radius: ${defaultBorderRadius};
border: 0.5px solid ${lightGray};
border: 1px solid ${vscCommandCenterInactiveBorder};
background-color: ${vscInputBackground};
max-height: ${MAX_HEIGHT_PX}px;
@ -318,7 +323,7 @@ function ModelSelect() {
</div>
<div className="mt-auto">
<Divider className="!my-0" />
{sortedOptions.length > 0 && <Divider className="!my-0" />}
{selectedProfile?.profileType === "local" && (
<>

View file

@ -6,7 +6,11 @@ import {
} from "@heroicons/react/24/outline";
import { useState } from "react";
import styled from "styled-components";
import { defaultBorderRadius, lightGray } from "../..";
import {
defaultBorderRadius,
lightGray,
vscCommandCenterInactiveBorder,
} from "../..";
import { ToolTip } from "../../gui/Tooltip";
export const OptionDiv = styled.div<{
@ -45,7 +49,7 @@ export const MAX_HEIGHT_PX = 300;
export const Divider = styled.div`
height: 0.5px;
background-color: ${lightGray};
background-color: ${vscCommandCenterInactiveBorder};
`;
interface ModelOptionProps {

View file

@ -11,7 +11,12 @@ export function AccountButton() {
if (!session) {
return (
<SecondaryButton onClick={() => login(false)}>Sign in</SecondaryButton>
<SecondaryButton
className="whitespace-nowrap"
onClick={() => login(false)}
>
Sign in
</SecondaryButton>
);
}