Skip to content

Commit 01482c9

Browse files
committed
Remove header home icon and adjust header and tab padding
- instead of 'home' icon, place an oversized 'code web chat logo' - from header remove left side. merge right into parent, set justify content cneter ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ └── Home │ ├── Home.module.scss │ └── Home.tsx └── packages └── ui └── src └── components └── editor └── common └── Icon └── Icon.tsx
1 parent fb3420b commit 01482c9

3 files changed

Lines changed: 17 additions & 39 deletions

File tree

‎apps/editor/src/views/prompt/frontend/Home/Home.module.scss‎

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
inset: 0;
1010
display: flex;
1111
align-items: center;
12-
justify-content: space-between;
13-
gap: 12px;
14-
padding: 0 12px;
12+
justify-content: center;
13+
gap: 4px;
14+
padding: 0 22px;
1515
opacity: 1;
1616
transform: translateY(0);
1717
transition:
1818
transform var(--transition-duration-250) var(--transition-timing-function),
1919
opacity var(--transition-duration-250) var(--transition-timing-function);
2020

2121
:global([data-modern-ui='true']) & {
22-
padding: 0 10px;
22+
padding: 0 20px;
2323
}
2424

2525
&--hidden {
@@ -29,23 +29,6 @@
2929
}
3030
}
3131

32-
&__left {
33-
display: flex;
34-
align-items: center;
35-
justify-content: center;
36-
border-radius: 5px;
37-
--size: 20px;
38-
width: var(--size);
39-
height: var(--size);
40-
color: var(--vscode-icon-foreground);
41-
}
42-
43-
&__right {
44-
display: flex;
45-
align-items: center;
46-
gap: 4px;
47-
}
48-
4932
&__targets {
5033
position: absolute;
5134
inset: 0;

‎apps/editor/src/views/prompt/frontend/Home/Home.tsx‎

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,18 @@ export const Home: React.FC<Props> = (props) => {
142142
})}
143143
ref={container_ref}
144144
>
145-
<div className={styles['header__left']}>
146-
<span className="codicon codicon-home" />
147-
</div>
148-
<div className={styles['header__right']}>
149-
<CompactableActionButton
150-
label={discord_label}
151-
href="https://discord.gg/KJySXsrSX5"
152-
icon="DISCORD"
153-
is_compact={compact_step >= 1}
154-
/>
155-
<CompactableActionButton
156-
label={coffee_label}
157-
on_click={props.on_donate_click}
158-
codicon="coffee"
159-
is_compact={compact_step >= 2}
160-
/>
161-
</div>
145+
<CompactableActionButton
146+
label={discord_label}
147+
href="https://discord.gg/KJySXsrSX5"
148+
icon="DISCORD"
149+
is_compact={compact_step >= 1}
150+
/>
151+
<CompactableActionButton
152+
label={coffee_label}
153+
on_click={props.on_donate_click}
154+
codicon="coffee"
155+
is_compact={compact_step >= 2}
156+
/>
162157
</div>
163158

164159
<div

‎packages/ui/src/components/editor/prompt/Tabs/Tabs.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
&__tab {
2121
@include accent-font;
2222
font-size: 16px;
23-
padding: 4px 8px 3px 8px;
23+
padding: 4px 10px 3px 10px;
2424
display: flex;
2525
align-items: center;
2626
text-transform: none;

0 commit comments

Comments
 (0)