forked from 77media/video-flow
banner输入框内边距H5兼容
This commit is contained in:
parent
94e18b8110
commit
e1edd2008d
@ -5,6 +5,7 @@ import { fetchSettingByCode } from "@/api/serversetting";
|
||||
import { X, ChevronUp, ChevronsDown } from "lucide-react";
|
||||
import { ChatInputBox } from "@/components/ChatInputBox/ChatInputBox";
|
||||
import { VideoCreationForm } from '@/components/pages/create-video/CreateInput';
|
||||
import { useDeviceType } from '@/hooks/useDeviceType';
|
||||
|
||||
export const HOME_BANNER_CODE = "homeBanner";
|
||||
const HOME_BANNER_COLLAPSE_KEY = "homeBannerCollapsedDate";
|
||||
@ -42,6 +43,8 @@ export default function HomeBanner() {
|
||||
const autoCollapseTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
const skipAutoCollapseRef = useRef<boolean>(false);
|
||||
|
||||
const { isMobile, isDesktop } = useDeviceType();
|
||||
|
||||
/** Returns YYYY-MM-DD for user's local timezone */
|
||||
const getLocalDateKey = () => {
|
||||
const now = new Date();
|
||||
@ -239,7 +242,7 @@ export default function HomeBanner() {
|
||||
</section>
|
||||
|
||||
{/* Base content - always present under the banner */}
|
||||
<div data-alt="home-banner-base" className="relative p-6 px-12 min-h-[300px] flex items-center justify-center bg-[radial-gradient(ellipse_at_center,rgba(106,244,249,0.28)_0%,rgba(106,244,249,0.14)_35%,transparent_70%)]">
|
||||
<div data-alt="home-banner-base" className={`relative p-6 px-12 min-h-[300px] flex items-center justify-center bg-[radial-gradient(ellipse_at_center,rgba(106,244,249,0.28)_0%,rgba(106,244,249,0.14)_35%,transparent_70%)] ${isDesktop ? '' : '!p-0'}`}>
|
||||
<VideoCreationForm />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -17,7 +17,7 @@ export const navigationItems: Navigations[] = [
|
||||
{ name: 'Home', href: '/home', icon: Home },
|
||||
{ name: 'My Portfolio', href: '/movies', icon: BookHeart },
|
||||
{ name: 'Share', href: '/share', icon: Gift },
|
||||
{ name: 'Create', href: '/create', icon: Plus },
|
||||
// { name: 'Create', href: '/create', icon: Plus },
|
||||
],
|
||||
}
|
||||
];
|
||||
Loading…
x
Reference in New Issue
Block a user