Skip to content

Commit f9e7527

Browse files
committed
docs: align readme badge layout
1 parent 54a2736 commit f9e7527

2 files changed

Lines changed: 18 additions & 48 deletions

File tree

README.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22
<h1>@rc-component/mentions</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>💬 React mentions textarea with searchable suggestions and keyboard navigation.</p>
5+
6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/mentions"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/mentions.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/mentions"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/mentions.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml"><img alt="build status" src="https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/mentions"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/mentions/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/mentions"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/mentions?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>
514
</div>
615

716
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
817

9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url]
12-
[![npm download][download-image]][download-url]
13-
[![build status][github-actions-image]][github-actions-url]
14-
[![Codecov][codecov-image]][codecov-url]
15-
[![bundle size][bundlephobia-image]][bundlephobia-url]
16-
[![dumi][dumi-image]][dumi-url]
17-
18-
</div>
19-
2018
## Highlights
2119

2220
- Textarea mentions with prefix based search and selection.
@@ -170,16 +168,3 @@ The release flow is handled by `@rc-component/np` through the `rc-np` command af
170168
## License
171169

172170
@rc-component/mentions is released under the [MIT](./LICENSE) license.
173-
174-
[npm-image]: https://img.shields.io/npm/v/@rc-component/mentions.svg?style=flat-square
175-
[npm-url]: https://npmjs.org/package/@rc-component/mentions
176-
[github-actions-image]: https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml/badge.svg
177-
[github-actions-url]: https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml
178-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/mentions/master.svg?style=flat-square
179-
[codecov-url]: https://app.codecov.io/gh/react-component/mentions
180-
[download-image]: https://img.shields.io/npm/dm/@rc-component/mentions.svg?style=flat-square
181-
[download-url]: https://npmjs.org/package/@rc-component/mentions
182-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/mentions
183-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/mentions?style=flat-square
184-
[dumi-url]: https://github.com/umijs/dumi
185-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square

README.zh-CN.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22
<h1>@rc-component/mentions</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 提及输入组件,支持建议列表、自定义过滤和多前缀触发。</p>
5+
6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/mentions"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/mentions.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/mentions"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/mentions.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml"><img alt="build status" src="https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/mentions"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/mentions/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/mentions"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/mentions?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>
514
</div>
615

716
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
817

9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url]
12-
[![npm download][download-image]][download-url]
13-
[![build status][github-actions-image]][github-actions-url]
14-
[![Codecov][codecov-image]][codecov-url]
15-
[![bundle size][bundlephobia-image]][bundlephobia-url]
16-
[![dumi][dumi-image]][dumi-url]
17-
18-
</div>
19-
2018
## 特性
2119

2220
- 文本区域提及基于前缀的搜索和选择。
@@ -170,16 +168,3 @@ npm run prepublishOnly
170168
## 许可证
171169

172170
@rc-component/mentions 基于 [MIT](./LICENSE) 许可证发布。
173-
174-
[npm-image]: https://img.shields.io/npm/v/@rc-component/mentions.svg?style=flat-square
175-
[npm-url]: https://npmjs.org/package/@rc-component/mentions
176-
[github-actions-image]: https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml/badge.svg
177-
[github-actions-url]: https://github.com/react-component/mentions/actions/workflows/react-component-ci.yml
178-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/mentions/master.svg?style=flat-square
179-
[codecov-url]: https://app.codecov.io/gh/react-component/mentions
180-
[download-image]: https://img.shields.io/npm/dm/@rc-component/mentions.svg?style=flat-square
181-
[download-url]: https://npmjs.org/package/@rc-component/mentions
182-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/mentions
183-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/mentions?style=flat-square
184-
[dumi-url]: https://github.com/umijs/dumi
185-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square

0 commit comments

Comments
 (0)