Iceberry-qdd / icehub-frontend

A twitter-like social networking site.
MIT License
0 stars 0 forks source link

🐛 搜索页面仅有一个用户时,右导航按钮错位 #43

Closed Iceberry-qdd closed 4 months ago

Iceberry-qdd commented 7 months ago

如图:

Image

Iceberry-qdd commented 4 months ago

搜索页面左右导航条到最后一条时随机不消失。

Image

Iceberry-qdd commented 4 months ago

这是由于没有注意到CSS标识符不能以数字开头,而用户卡片id直接赋为UUID,UUID可能会以数字开头,导致报错。

In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F".

参见:https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier