Skip to content

Commit 11503cb

Browse files
committed
chore: minor UI tweaks
- Reduce theme toggle button size in header - Fix picker demo alignment with align="start" - Alphabetize sidebar menu entries
1 parent 3d67750 commit 11503cb

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

components/date-picker/demo/size.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Three sizes: `sm`, `md` (default), `lg`.
77
```jsx live
88
() => {
99
return (
10-
<Space direction="vertical">
10+
<Space direction="vertical" align="start">
1111
<DatePicker size="sm" placeholder="Small" />
1212
<DatePicker placeholder="Default" />
1313
<DatePicker size="lg" placeholder="Large" />

components/time-picker/demo/size.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Three sizes: `sm`, `md` (default), `lg`.
77
```jsx live
88
() => {
99
return (
10-
<Space direction="vertical">
10+
<Space direction="vertical" align="start">
1111
<TimePicker size="sm" placeholder="Small" />
1212
<TimePicker placeholder="Default" />
1313
<TimePicker size="lg" placeholder="Large" />

site/src/components/header/header.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
display: inline-flex;
9595
align-items: center;
9696
justify-content: center;
97-
width: 36px;
98-
height: 36px;
97+
width: 28px;
98+
height: 28px;
9999
border: 1px solid var(--ty-color-border);
100100
border-radius: 50%;
101101
background: var(--ty-color-bg-elevated);

site/src/components/header/theme-toggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const ThemeToggle = (): React.ReactElement => {
1212
aria-label={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
1313
title={isDark ? 'Switch to light mode' : 'Switch to dark mode'}>
1414
{isDark ? (
15-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
15+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
1616
<circle cx="12" cy="12" r="5" />
1717
<line x1="12" y1="1" x2="12" y2="3" />
1818
<line x1="12" y1="21" x2="12" y2="23" />
@@ -24,7 +24,7 @@ export const ThemeToggle = (): React.ReactElement => {
2424
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
2525
</svg>
2626
) : (
27-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
27+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
2828
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
2929
</svg>
3030
)}

site/src/routers.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ export const COMPONENT_MENU: RouterItem[] = [
144144
{
145145
title: 'Data Display',
146146
children: [
147-
{
148-
title: 'Carousel',
149-
route: 'carousel',
150-
component: lazy(() => import('../../components/carousel/index.md')),
151-
},
152147
{
153148
title: 'Avatar',
154149
route: 'avatar',
@@ -164,6 +159,11 @@ export const COMPONENT_MENU: RouterItem[] = [
164159
route: 'card',
165160
component: lazy(() => import('../../components/card/index.md')),
166161
},
162+
{
163+
title: 'Carousel',
164+
route: 'carousel',
165+
component: lazy(() => import('../../components/carousel/index.md')),
166+
},
167167
{
168168
title: 'Collapse',
169169
route: 'collapse',
@@ -224,11 +224,6 @@ export const COMPONENT_MENU: RouterItem[] = [
224224
{
225225
title: 'Form Item',
226226
children: [
227-
{
228-
title: 'DatePicker',
229-
route: 'date-picker',
230-
component: lazy(() => import('../../components/date-picker/index.md')),
231-
},
232227
{
233228
title: 'Form',
234229
route: 'form',
@@ -239,6 +234,11 @@ export const COMPONENT_MENU: RouterItem[] = [
239234
route: 'checkbox',
240235
component: lazy(() => import('../../components/checkbox/index.md')),
241236
},
237+
{
238+
title: 'DatePicker',
239+
route: 'date-picker',
240+
component: lazy(() => import('../../components/date-picker/index.md')),
241+
},
242242
{
243243
title: 'Input',
244244
route: 'input',

0 commit comments

Comments
 (0)