Skip to content

Commit

Permalink
Merge pull request #495 from fastrodev/user
Browse files Browse the repository at this point in the history
chore: update layout
  • Loading branch information
ynwd authored Oct 29, 2024
2 parents a628962 + 4af3331 commit fded4ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/index/index.input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function MessageInput(
};

return (
<div class={`flex items-center z-20`}>
<div class={`flex items-center bg-transparent z-20`}>
<div class={`w-12 min-w-12 block`}>
<img
src={props.avatar_url}
Expand Down
4 changes: 2 additions & 2 deletions modules/index/index.main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ListMessage(props: { data: DataType[] }) {
return (
<div
ref={listRef}
class={`overflow-scroll pt-3 mb-16 z-0`}
class={`overflow-auto pt-3 mb-16 z-0`}
>
<ul class={`flex flex-col justify-end gap-y-2`}>
{data && data.map((item, index) => {
Expand Down Expand Up @@ -162,7 +162,7 @@ export function Main(
<Background />
<ListMessage data={data} />
</div>
<div class="fixed md:absolute bottom-0 left-0 right-0 pb-4 pl-3 pr-3 z-10">
<div class="fixed md:absolute bottom-0 left-0 right-0 p-3 z-10">
<MessageInput
avatar_url={props.avatar_url}
ws_url={props.ws_url}
Expand Down

0 comments on commit fded4ab

Please sign in to comment.