Skip to content

Commit

Permalink
Improved layout of wave creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Nov 18, 2024
1 parent 92f33a1 commit b6b48d0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/app/waves/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ export default function WavesLayout(props: PropsWithChildren) {
<Feedback />
<ScrollToTop />
<Navbar />
<div className="container mx-auto grid grid-cols-12">
<div className="container mt-[156px] mx-auto grid grid-cols-12">
<div className="col-span-3"></div>
<div className="col-span-6">{props.children}</div>
<div className="col-span-3"></div>
<div className="col-span-12 lg:col-span-8 xl:col-span-7 mt-[156px]">{props.children}</div>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/available-credits/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
overflow: hidden;

.available-credits-progress {
@apply bg-gray-200;
@apply bg-gray-200 dark:bg-gray-900;
height: 8px;
width: 100%;
border-radius: 4px;
Expand Down
3 changes: 2 additions & 1 deletion src/features/waves/components/wave-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export const WaveForm = ({
submit={
<Button
onClick={submit}
disabled={disabled || loading}
disabled={disabled}
isLoading={loading}
className="justify-self-end"
size="sm"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const WaveFormControl = ({
return (
<div className="pt-4">
<TextareaAutosize
className="w-full min-h-[8rem] outline-none border-0 resize-none bg-transparent"
className="w-full min-h-[8rem] rounded-xl p-2 lg:p-4 bg-gray-100 dark:bg-dark-default outline-none border-0 resize-none"
placeholder={placeholder ?? i18next.t("decks.threads-form.input-placeholder")}
value={text}
onChange={(e) => setText(e.target.value)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Button } from "@ui/button";
import i18next from "i18next";
import { UserAvatar } from "@/features/shared";
import { AVAILABLE_THREAD_HOSTS } from "@/features/waves";
import { UilArrowDown } from "@tooni/iconscout-unicons-react";

interface Props {
host: string | undefined;
Expand All @@ -17,7 +16,7 @@ export const WaveFormThreadSelection = ({ host, setHost }: Props) => {
<div className="text-sm opacity-50">{i18next.t("decks.threads-form.thread-host")}</div>
<Dropdown>
<DropdownToggle>
<Button size="sm" outline={true} icon={<UilArrowDown className="w-3 h-3" />}>
<Button size="sm" appearance="link" noPadding={true}>
@{host ? host : i18next.t("decks.threads-form.select-thread-host")}
</Button>
</DropdownToggle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const WaveFormToolbar = ({ onAddImage, onEmojiPick, submit }: Props) => {
const [show, setShow] = useState(false);

return (
<div className="flex items-center justify-between p-4">
<div className="flex items-center justify-between py-4">
<div className="flex items-center">
<WaveFormToolbarImagePicker onAddImage={onAddImage} />
<WaveFormEmojiPicker onPick={onEmojiPick} />
Expand Down

0 comments on commit b6b48d0

Please sign in to comment.