Skip to content

Commit d267e70

Browse files
committed
feat(examples): 优化 engine-browser-examples 样式
1 parent 14bca37 commit d267e70

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

examples/engine-browser-examples/src/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ form[action$='destroy'] button {
115115
#sidebar {
116116
display: flex;
117117
flex-direction: column;
118-
width: 22rem;
118+
width: 16rem;
119119
background-color: #f7f7f7;
120120
border-right: solid 1px #e3e3e3;
121121
}
122122

123123
#sidebar > * {
124-
padding-right: 2rem;
125-
padding-left: 2rem;
124+
padding-right: 1rem;
125+
padding-left: 1rem;
126126
}
127127

128128
#sidebar h1 {
@@ -233,7 +233,7 @@ i {
233233
gap: 1rem;
234234
align-items: center;
235235
justify-content: space-between;
236-
padding: 0.5rem;
236+
padding: 0.5rem 0 0.5rem 0.2rem;
237237
overflow: hidden;
238238
color: inherit;
239239

examples/engine-browser-examples/src/routes/root.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ export default function Root() {
1111
<input
1212
id="q"
1313
aria-label="Search contacts"
14-
placeholder="Search"
14+
placeholder="Press Enter for Search"
1515
type="search"
1616
name="q"
1717
/>
1818
<div id="search-spinner" aria-hidden hidden={true} />
1919
<div className="sr-only" aria-live="polite"></div>
2020
</form>
21-
<form method="post">
22-
<button type="submit">New</button>
23-
</form>
2421
</div>
2522
<nav>
2623
<ul>

0 commit comments

Comments
 (0)