Skip to content

Commit 903d8eb

Browse files
committed
docs: align readme badge layout
1 parent 4b90abe commit 903d8eb

2 files changed

Lines changed: 18 additions & 40 deletions

File tree

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,18 @@
22
<h1>@rc-component/dropdown</h1>
33
<p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Part of the Ant Design ecosystem.</sub></p>
44
<p>🔽 A trigger-driven dropdown component for React.</p>
5-
</div>
6-
7-
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
8-
9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]
125

6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/dropdown"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/dropdown.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/dropdown"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/dropdown.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/dropdown/actions/workflows/ci.yml"><img alt="build status" src="https://github.com/react-component/dropdown/actions/workflows/ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/dropdown"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/dropdown/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/dropdown"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/dropdown?style=flat-square"></a>
12+
<a href="https://github.com/umijs/dumi"><img alt="dumi" src="https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square"></a>
13+
</p>
1314
</div>
1415

15-
[npm-image]: https://img.shields.io/npm/v/@rc-component/dropdown.svg?style=flat-square
16-
[npm-url]: https://npmjs.org/package/@rc-component/dropdown
17-
[github-actions-image]: https://github.com/react-component/dropdown/actions/workflows/ci.yml/badge.svg
18-
[github-actions-url]: https://github.com/react-component/dropdown/actions/workflows/ci.yml
19-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/dropdown/master.svg?style=flat-square
20-
[codecov-url]: https://app.codecov.io/gh/react-component/dropdown
21-
[download-image]: https://img.shields.io/npm/dm/@rc-component/dropdown.svg?style=flat-square
22-
[download-url]: https://npmjs.org/package/@rc-component/dropdown
23-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/%40rc-component%2Fdropdown?style=flat-square
24-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/dropdown
25-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
26-
[dumi-url]: https://github.com/umijs/dumi
27-
16+
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
2817
## Highlights
2918

3019
- Built on `@rc-component/trigger`.

README.zh-CN.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,18 @@
22
<h1>@rc-component/dropdown</h1>
33
<p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Ant Design 生态的一部分。</sub></p>
44
<p>🔽 ⬇️ React 下拉菜单基础组件,基于 trigger 和 menu 能力构建。</p>
5-
</div>
6-
7-
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
8-
9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]
125

6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/dropdown"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/dropdown.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/dropdown"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/dropdown.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/dropdown/actions/workflows/ci.yml"><img alt="build status" src="https://github.com/react-component/dropdown/actions/workflows/ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/dropdown"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/dropdown/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/dropdown"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/dropdown?style=flat-square"></a>
12+
<a href="https://github.com/umijs/dumi"><img alt="dumi" src="https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square"></a>
13+
</p>
1314
</div>
1415

15-
[npm-image]: https://img.shields.io/npm/v/@rc-component/dropdown.svg?style=flat-square
16-
[npm-url]: https://npmjs.org/package/@rc-component/dropdown
17-
[github-actions-image]: https://github.com/react-component/dropdown/actions/workflows/ci.yml/badge.svg
18-
[github-actions-url]: https://github.com/react-component/dropdown/actions/workflows/ci.yml
19-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/dropdown/master.svg?style=flat-square
20-
[codecov-url]: https://app.codecov.io/gh/react-component/dropdown
21-
[download-image]: https://img.shields.io/npm/dm/@rc-component/dropdown.svg?style=flat-square
22-
[download-url]: https://npmjs.org/package/@rc-component/dropdown
23-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/%40rc-component%2Fdropdown?style=flat-square
24-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/dropdown
25-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
26-
[dumi-url]: https://github.com/umijs/dumi
27-
16+
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
2817
## 特性
2918

3019
- 基于 `@rc-component/trigger` 构建。

0 commit comments

Comments
 (0)