mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-02 23:02:33 -08:00
ill stop playing around with the minutia
This commit is contained in:
1 parent
fb988dd20f
commit
1345a0b41e
3 files changed
+8
-34
No files matched your search
@@ -84,11 +84,7 @@ export function UserHero({ userId, avatarUrl, bannerUrl, presence, autoplayGifs
|
||||
undefined;
|
||||
|
||||
return (
|
||||
<Box
|
||||
direction="Column"
|
||||
className={css.UserHero}
|
||||
style={{ backgroundColor: backgroundColor }}
|
||||
>
|
||||
<Box direction="Column" className={css.UserHero} style={{ backgroundColor: backgroundColor }}>
|
||||
<div
|
||||
className={css.UserHeroCoverContainer}
|
||||
style={{
|
||||
|
||||
@@ -526,7 +526,7 @@ export function UserRoomProfile({ userId, initialProfile }: Readonly<UserRoomPro
|
||||
direction="Column"
|
||||
gap="300"
|
||||
style={{
|
||||
padding: config.space.S200,
|
||||
padding: renderUserCards && innerColor ? config.space.S200 : config.space.S0,
|
||||
backgroundColor,
|
||||
}}
|
||||
>
|
||||
@@ -539,11 +539,15 @@ export function UserRoomProfile({ userId, initialProfile }: Readonly<UserRoomPro
|
||||
borderWidth: toRem(5),
|
||||
borderColor: '#00000000',
|
||||
borderStyle: 'solid',
|
||||
padding: config.space.S200,
|
||||
padding: renderUserCards && innerColor ? config.space.S200 : config.space.S300,
|
||||
}}
|
||||
>
|
||||
<Box gap="200" alignItems="Center" wrap="Wrap">
|
||||
<UserHeroName displayName={displayName} userId={userId} customHeroCards={renderUserCards}/>
|
||||
<UserHeroName
|
||||
displayName={displayName}
|
||||
userId={userId}
|
||||
customHeroCards={renderUserCards}
|
||||
/>
|
||||
{userId !== myUserId && (
|
||||
<Button
|
||||
size="300"
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
import { useMemo } from 'react';
|
||||
import { ShowRoomIcon } from '$state/settings';
|
||||
|
||||
export type MessageLayoutItem = {
|
||||
name: string;
|
||||
layout: ShowRoomIcon;
|
||||
};
|
||||
|
||||
export const useShowRoomIcon = (): MessageLayoutItem[] =>
|
||||
useMemo(
|
||||
() => [
|
||||
{
|
||||
layout: ShowRoomIcon.Always,
|
||||
name: 'Always',
|
||||
},
|
||||
{
|
||||
layout: ShowRoomIcon.Smart,
|
||||
name: 'Smart',
|
||||
},
|
||||
{
|
||||
layout: ShowRoomIcon.Never,
|
||||
name: 'Never',
|
||||
},
|
||||
],
|
||||
[]
|
||||
);
|
||||
Reference in new issue
Block a user