Skip to content

Commit 6e8fc12

Browse files
authored
fix: layout alignment (#1779)
1 parent f5d687f commit 6e8fc12

File tree

6 files changed

+26
-45
lines changed

6 files changed

+26
-45
lines changed

gui/src/components/Layout.tsx

+13-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ const FOOTER_HEIGHT = "1.8em";
3636
const LayoutTopDiv = styled(CustomScrollbarDiv)`
3737
height: 100%;
3838
border-radius: ${defaultBorderRadius};
39+
position: relative;
40+
41+
&::after {
42+
position: absolute;
43+
content: "";
44+
width: 100%;
45+
height: 1px;
46+
background-color: rgba(136, 136, 136, 0.3);
47+
top: 0;
48+
left: 0;
49+
}
3950
`;
4051

4152
const BottomMessageDiv = styled.div<{ displayOnBottom: boolean }>`
@@ -66,7 +77,8 @@ const Footer = styled.footer`
6677
height: ${FOOTER_HEIGHT};
6778
background-color: transparent;
6879
backdrop-filter: blur(12px);
69-
80+
border-top: 1px solid rgba(136, 136, 136, 0.3);
81+
border-bottom: 1px solid rgba(136, 136, 136, 0.3);
7082
overflow: hidden;
7183
`;
7284

gui/src/components/loaders/BlinkingDot.tsx

-34
This file was deleted.

gui/src/components/loaders/StatusDot.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const StatusDot = styled.div<{
2727
height: ${(props) => props.diameter ?? DEFAULT_DIAMETER}px;
2828
border-radius: 50%;
2929
border: 1px solid rgba(255, 255, 255, 0.75);
30-
margin: 0 2px;
30+
margin: 0 4px 0 8px;
3131
${(props) => (props.shouldBlink ?? false) && blinkAnimation};
3232
`;
3333

gui/src/components/mainInput/InputToolbar.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function InputToolbar(props: InputToolbarProps) {
151151
⏎ Enter
152152
</EnterButton>
153153
</span>
154-
<span className="flex flex-wrap-reverse items-center whitespace-nowrap">
154+
<span className="flex flex-wrap-reverse gap-1 items-center whitespace-nowrap">
155155
<ModelSelect />
156156
<span
157157
style={{
@@ -171,7 +171,7 @@ function InputToolbar(props: InputToolbarProps) {
171171
defaultModel.title,
172172
) && (
173173
<span
174-
className="ml-1.5 mt-0.5"
174+
className="ml-1 mt-0.5"
175175
onMouseLeave={() => setFileSelectHovered(false)}
176176
onMouseEnter={() => setFileSelectHovered(true)}
177177
>

gui/src/components/modelSelection/ModelSelect.tsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import ConfirmationDialog from "../dialogs/ConfirmationDialog";
2828
const StyledListboxButton = styled(Listbox.Button)`
2929
display: flex;
3030
align-items: center;
31-
gap: 4px;
31+
gap: 2px;
3232
border: none;
3333
cursor: pointer;
34-
font-size: ${() => `${getFontSize() - 4}px`};
34+
font-size: ${() => `${getFontSize() - 3}px`};
3535
background: transparent;
3636
color: ${() => lightGray};
3737
&:focus {
@@ -212,11 +212,14 @@ function ModelSelect() {
212212
}}
213213
>
214214
<div className="relative">
215-
<StyledListboxButton className="h-[18px] overflow-hidden">
215+
<StyledListboxButton
216+
className="h-[18px] overflow-hidden"
217+
style={{ padding: 0 }}
218+
>
216219
<div>{modelSelectTitle(defaultModel) || "Select model"}</div>
217220
<div className="pointer-events-none flex items-center">
218221
<ChevronDownIcon
219-
className="h-2.5 w-2.5 text-gray-400"
222+
className="h-2.5 w-2.5"
220223
aria-hidden="true"
221224
/>
222225
</div>

gui/src/pages/gui.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ const StepsDiv = styled.div`
108108
const NewSessionButton = styled.div`
109109
width: fit-content;
110110
margin-right: auto;
111-
margin-left: 8px;
112-
margin-top: 4px;
113-
111+
margin-left: 6px;
112+
margin-top: 2px;
113+
margin-bottom: 8px;
114114
font-size: ${getFontSize() - 2}px;
115115
116116
border-radius: ${defaultBorderRadius};

0 commit comments

Comments
 (0)