chore: polish UIs
This commit is contained in:
@@ -44,7 +44,6 @@ const Avatar: FC<Props> = ({
|
|||||||
<div
|
<div
|
||||||
className={`rounded-full flex-center ${rest.className || ""}`}
|
className={`rounded-full flex-center ${rest.className || ""}`}
|
||||||
style={{
|
style={{
|
||||||
|
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
fontSize: getFontSize(width),
|
fontSize: getFontSize(width),
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const Input: FC<Props> = ({ type = "text", prefix = "", className = "", ...rest
|
|||||||
</div>
|
</div>
|
||||||
) : prefix ? (
|
) : prefix ? (
|
||||||
<div className={`w-full relative flex overflow-hidden rounded border border-solid border-gray-300 dark:border-gray-400 shadow-sm ${className}`}>
|
<div className={`w-full relative flex overflow-hidden rounded border border-solid border-gray-300 dark:border-gray-400 shadow-sm ${className}`}>
|
||||||
<span className="px-4 py-2 text-sm text-gray-500 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 shadow-[rgb(0_0_0_/_10%)_-1px_0px_0px_inset]">{prefix}</span>
|
{typeof prefix === "string" ? <span className="px-4 py-2 text-sm text-gray-500 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 shadow-[rgb(0_0_0_/_10%)_-1px_0px_0px_inset]">{prefix}</span> : <span className="flex-center p-2 bg-gray-100 dark:bg-gray-800 ">{prefix}</span>}
|
||||||
<input className={`${inputClass} ${className}`} type={inputType} {...rest} />
|
<input className={`${inputClass} ${className}`} type={inputType} {...rest} />
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -118,14 +118,14 @@ const Session: FC<IProps> = ({
|
|||||||
to={navPath}
|
to={navPath}
|
||||||
onContextMenu={handleContextMenuEvent}
|
onContextMenu={handleContextMenuEvent}
|
||||||
>
|
>
|
||||||
<div className="flex shrink-0 relative">
|
<div className="flex shrink-0 relative w-10 h-10">
|
||||||
{type == "dm" ? (
|
{type == "dm" ? (
|
||||||
<User avatarSize={40} compact interactive={false} uid={id} />
|
<User avatarSize={40} compact interactive={false} uid={id} />
|
||||||
) : (
|
) : (
|
||||||
<Avatar
|
<Avatar
|
||||||
width={40}
|
width={40}
|
||||||
height={40}
|
height={40}
|
||||||
className="icon rounded-full"
|
className="icon rounded-full object-cover"
|
||||||
type="channel"
|
type="channel"
|
||||||
name={name}
|
name={name}
|
||||||
src={icon}
|
src={icon}
|
||||||
|
|||||||
Reference in New Issue
Block a user