Skip to content

Commit d851b59

Browse files
authored
ui-fixes-138 (#10355)
1 parent abf0220 commit d851b59

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

apps/desktop/src/components/Login.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
$aborted = true;
6868
posthog.captureOnboarding(OnboardingEvent.CancelLoginGitButler);
6969
}}
70-
loading={$aborted}>Cancel login attempt</Button
70+
loading={$aborted}>Abort</Button
7171
>
7272
</div>
7373
{/if}

apps/desktop/src/components/WelcomeSigninAction.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@
5454

5555
{#if $loading}
5656
<div>
57-
<Button kind="outline" onclick={() => ($aborted = true)} loading={$aborted}
58-
>Cancel login attempt</Button
59-
>
57+
<Button kind="outline" onclick={() => ($aborted = true)} loading={$aborted}>Abort</Button>
6058
</div>
6159
{/if}
6260
{/if}

apps/desktop/src/components/codegen/CodegenChatLayout.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<div class="chat-container">
5555
<div class="chat-messages" onscroll={handleScroll}>
56-
<div bind:this={bottomAnchor} style="height: 1px; margin-top: 8px;"></div>
56+
<div bind:this={bottomAnchor} style="height: 1px;"></div>
5757
{@render messages()}
5858
</div>
5959

@@ -106,7 +106,6 @@
106106
.chat-header__actions {
107107
display: flex;
108108
align-items: center;
109-
110109
gap: 4px;
111110
}
112111
@@ -121,11 +120,20 @@
121120
display: flex;
122121
flex-direction: column-reverse;
123122
width: 100%;
124-
padding: 8px 20px;
123+
padding: 0 20px;
125124
overflow-x: hidden;
126125
overflow-y: scroll;
127126
scrollbar-width: none; /* Firefox */
128127
-ms-overflow-style: none; /* IE 10+ */
128+
129+
/* this hack is needed to add padding on top of the first message */
130+
/* so it doesn't stick to the top edge */
131+
:global(& > div:last-child) {
132+
padding-top: 20px;
133+
}
134+
:global(& > div:first-child) {
135+
padding-bottom: 8px;
136+
}
129137
}
130138
131139
.chat-scroll-to-bottom {

apps/desktop/src/components/codegen/CodegenUserMessage.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
flex-direction: column;
3939
max-width: calc(var(--message-max-width) - 6%);
4040
padding: 10px 14px;
41+
overflow: hidden;
4142
gap: 16px;
4243
border-radius: var(--radius-ml);
4344
border-bottom-left-radius: 0;

0 commit comments

Comments
 (0)