Skip to content

Commit 7b4b13c

Browse files
committed
Improve prompt view layouts with flex containers and refine configuration component styling
- configurations should occupy all the remaining vertical space and apply space-between on the list items and the Add New button - a long text doesn't look good - add translations to [Fragment] - move '.empty' outside '.configurations'
1 parent 9dcbd21 commit 7b4b13c

11 files changed

Lines changed: 370 additions & 345 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,18 @@
7272
.content {
7373
display: flex;
7474
flex-direction: column;
75-
align-items: center;
7675
justify-content: space-between;
7776
gap: 20px;
7877
height: 100%;
79-
padding-top: 4px;
78+
79+
> * {
80+
flex-shrink: 0;
81+
}
8082
}
8183

8284
.inner {
8385
display: flex;
8486
flex-direction: column;
85-
width: 100%;
8687

8788
&__target {
8889
display: flex;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ export const Home: React.FC<Props> = (props) => {
194194
<UiScrollable on_scroll={handle_scroll} top_shadow>
195195
<div className={styles.content}>
196196
<div className={styles.inner}>
197+
<UiSeparator height={4} />
198+
197199
<div className={styles.inner__target} ref={target_ref}>
198200
<UiKeycapWrapper
199201
char={is_alt_pressed ? 'W' : undefined}

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.module.scss‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@
88
margin: 0 10px;
99
}
1010
}
11+
12+
.content {
13+
display: flex;
14+
flex-direction: column;
15+
height: 100%;
16+
17+
> * {
18+
flex-shrink: 0;
19+
}
20+
}

0 commit comments

Comments
 (0)