update cs

This commit is contained in:
smfahim25 2025-02-03 11:14:11 +06:00
parent f88b81fb35
commit 3a07457404
16 changed files with 18 additions and 16 deletions

View file

@ -24,7 +24,7 @@ const sidebarItems = [
export function Sidebar() { export function Sidebar() {
const { selectedPanel, setSelectedPanel } = useContext(CanvasContext); const { selectedPanel, setSelectedPanel } = useContext(CanvasContext);
return ( return (
<div className="w-20 border-r bg-background flex flex-col items-center py-4 gap-6"> <div className="w-20 border-r bg-background flex flex-col items-center py-4 gap-6 md:pt-16 xl:pt-0">
{sidebarItems.map((item) => { {sidebarItems.map((item) => {
const Icon = item.icon; const Icon = item.icon;
return ( return (

View file

@ -19,7 +19,7 @@ const CanvasPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<CanvasSetting /> <CanvasSetting />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -19,7 +19,7 @@ const ColorPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<ApplyColor /> <ApplyColor />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -50,7 +50,7 @@ const EditorPanel = () => {
return ( return (
<> <>
{selectedPanel !== "" && ( {selectedPanel !== "" && (
<div className="w-80 lg:h-[calc(90vh-100px)] bg-background rounded-xl shadow-lg mx-4 my-auto"> <div className="w-80 md:h-[calc(90vh-120px)] bg-background rounded-xl shadow-lg mx-4 my-auto">
{renderPanel()} {renderPanel()}
</div> </div>
)} )}

View file

@ -22,7 +22,7 @@ const FlipPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<Card className="shadow-none border-0"> <Card className="shadow-none border-0">
<CollapsibleComponent text={"Flip, Rotate Control"}> <CollapsibleComponent text={"Flip, Rotate Control"}>
<div className="space-y-2"> <div className="space-y-2">

View file

@ -21,7 +21,7 @@ const GroupObjectPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<SelectObjectFromGroup /> <SelectObjectFromGroup />
{/* Skew Customization */} {/* Skew Customization */}
<SkewCustomization /> <SkewCustomization />

View file

@ -20,7 +20,7 @@ const IconPanel = () => {
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<AllIconsPage /> <AllIconsPage />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -19,7 +19,7 @@ const ImagePanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<AddImageIntoShape /> <AddImageIntoShape />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -19,7 +19,7 @@ const PositionPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<PositionCustomization /> <PositionCustomization />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -19,7 +19,7 @@ const ShadowPanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<ShadowCustomization /> <ShadowCustomization />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -23,7 +23,7 @@ const ShapePanel = () => {
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<h2 className="font-semibold text-sm">Custom Shapes</h2> <h2 className="font-semibold text-sm">Custom Shapes</h2>
<Separator className="my-2" /> <Separator className="my-2" />
<div className="space-y-4"> <div className="space-y-4">

View file

@ -19,7 +19,7 @@ const StrokePanel = () => {
<X className="h-4 w-4" /> <X className="h-4 w-4" />
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<StrokeCustomization /> <StrokeCustomization />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -53,7 +53,7 @@ export default function TextPanel() {
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-195px)] px-4 py-4">
<Button <Button
className="w-full bg-[#FF2B85] hover:bg-[#FF2B85] text-white rounded-[10px] mb-6 h-12 font-medium text-xl" className="w-full bg-[#FF2B85] hover:bg-[#FF2B85] text-white rounded-[10px] mb-6 h-12 font-medium text-xl"
onClick={() => { onClick={() => {

View file

@ -27,7 +27,7 @@ export function TopBar() {
<ScrollArea <ScrollArea
className={`!absolute top-2 -translate-x-1/2 z-40 h-28 ${ className={`!absolute top-2 -translate-x-1/2 z-40 h-28 ${
selectedPanel !== "" selectedPanel !== ""
? "w-[500px] lg:w-[700px] xl:w-[900px] xl:left-[25%] 2xl:left-[50%]" ? "md:w-[475px] left-[41%] lg:w-[700px] lg:left-[43%] mdxl:left-[45%] xl:w-[900px] xl:left-[46%] 2xl:left-[50%]"
: "w-[500px] lg:w-[600px] xl:w-[900px] lg:left-[41%] xl:left-[50%]" : "w-[500px] lg:w-[600px] xl:w-[900px] lg:left-[41%] xl:left-[50%]"
} `} } `}
> >

View file

@ -20,7 +20,7 @@ const UploadPanel = () => {
</Button> </Button>
</div> </div>
<ScrollArea className="lg:h-[calc(90vh-190px)] px-4 py-4"> <ScrollArea className="md:h-[calc(90vh-190px)] px-4 py-4">
<UploadImage /> <UploadImage />
</ScrollArea> </ScrollArea>
</div> </div>

View file

@ -13,7 +13,9 @@ export default {
foreground: "hsl(var(--primary-foreground))", foreground: "hsl(var(--primary-foreground))",
}, },
}, },
screens: {
mdxl: "1100px",
},
colors: { colors: {
border: "hsl(var(--border))", border: "hsl(var(--border))",
input: "hsl(var(--input))", input: "hsl(var(--input))",