mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
fix: social buttons & profile status new lines
This commit is contained in:
parent
2c8460c6b0
commit
c640b84a49
2 changed files with 29 additions and 28 deletions
3
TODO.md
3
TODO.md
|
@ -44,8 +44,7 @@
|
||||||
|
|
||||||
## Баги
|
## Баги
|
||||||
|
|
||||||
- в статусе профиля нет переноса на новые линии
|
...
|
||||||
- копки соц. сетей в профиле немного обрезаются
|
|
||||||
|
|
||||||
## Другое
|
## Другое
|
||||||
|
|
||||||
|
|
|
@ -85,10 +85,6 @@ export const ProfilePage = (props: any) => {
|
||||||
{user.is_verified && (
|
{user.is_verified && (
|
||||||
<Chip bg_color="bg-green-500" name="Подтвержден" />
|
<Chip bg_color="bg-green-500" name="Подтвержден" />
|
||||||
)}
|
)}
|
||||||
{/* {user.is_banned && <Chip bg_color="bg-red-500" name="Заблокирован" />} */}
|
|
||||||
|
|
||||||
{/* <Chip bg="bg-blue-500" name={`Зарегистрирован: ${unixToDate(user.register_date)}`} /> */}
|
|
||||||
{/* <Chip bg="bg-blue-500" name={`Последний вход: ${unixToDate(user.last_activity_time)}`} /> */}
|
|
||||||
</div>
|
</div>
|
||||||
<Avatar
|
<Avatar
|
||||||
img={user.avatar}
|
img={user.avatar}
|
||||||
|
@ -99,7 +95,7 @@ export const ProfilePage = (props: any) => {
|
||||||
>
|
>
|
||||||
<div className="space-y-1 font-medium dark:text-white">
|
<div className="space-y-1 font-medium dark:text-white">
|
||||||
<div className="text-xl">{user.login}</div>
|
<div className="text-xl">{user.login}</div>
|
||||||
<div className="text-sm text-gray-500 dark:text-gray-400 max-w-64">
|
<div className="text-sm text-gray-500 whitespace-pre dark:text-gray-400 max-w-64">
|
||||||
{user.status}
|
{user.status}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -107,10 +103,16 @@ export const ProfilePage = (props: any) => {
|
||||||
{hasSocials && (
|
{hasSocials && (
|
||||||
<Button.Group
|
<Button.Group
|
||||||
outline={true}
|
outline={true}
|
||||||
className="overflow-x-scroll scrollbar-none"
|
className="overflow-x-auto scrollbar-thin"
|
||||||
>
|
>
|
||||||
{socials.map((social) => {
|
{socials
|
||||||
if (!social.nickname) return null;
|
.filter((social: any) => {
|
||||||
|
if (!social.nickname) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
})
|
||||||
|
.map((social: any) => {
|
||||||
if (social.name == "discord")
|
if (social.name == "discord")
|
||||||
return (
|
return (
|
||||||
<Button color="light" key={social.name} as="a">
|
<Button color="light" key={social.name} as="a">
|
||||||
|
|
Loading…
Add table
Reference in a new issue