Skip to content

Dev -> Main. Small hotfixes for 2.3.0 #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding background styles in container
  • Loading branch information
raheeliftikhar5 committed Jan 19, 2024
commit f341397ffdec712c26c7578ac6dbe6e94cba5bbf
113 changes: 33 additions & 80 deletions client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,38 @@ export const ContainerStyle = [
BORDER_WIDTH,
MARGIN,
PADDING,
{
name: "background",
label: trans("style.background"),
depName: "background",
depType: DEP_TYPE.SELF,
transformer: toSelf,
},
{
name: "backgroundImage",
label: trans("style.backgroundImage"),
backgroundImage: "backgroundImage",
},
{
name: "backgroundImageRepeat",
label: trans("style.backgroundImageRepeat"),
backgroundImageRepeat: "backgroundImageRepeat",
},
{
name: "backgroundImageSize",
label: trans("style.backgroundImageSize"),
backgroundImageSize: "backgroundImageSize",
},
{
name: "backgroundImagePosition",
label: trans("style.backgroundImagePosition"),
backgroundImagePosition: "backgroundImagePosition",
},
{
name: "backgroundImageOrigin",
label: trans("style.backgroundImageOrigin"),
backgroundImageOrigin: "backgroundImageOrigin",
},
] as const;

export const ContainerHeaderStyle = [
Expand Down Expand Up @@ -732,9 +764,6 @@ export const MultiSelectStyle = [
] as const;

export const TabContainerStyle = [
...BG_STATIC_BORDER_RADIUS,
BORDER_WIDTH,
HEADER_BACKGROUND,
{
name: "tabText",
label: trans("style.tabText"),
Expand All @@ -749,83 +778,7 @@ export const TabContainerStyle = [
depType: DEP_TYPE.SELF,
transformer: toSelf,
},
MARGIN,
PADDING,
{
name: "headerBackgroundImage",
label: trans("style.headerBackgroundImage"),
headerBackgroundImage: "headerBackgroundImage",
},
{
name: "headerBackgroundImageRepeat",
label: trans("style.headerBackgroundImageRepeat"),
headerBackgroundImageRepeat: "headerBackgroundImageRepeat",
},
{
name: "headerBackgroundImageSize",
label: trans("style.headerBackgroundImageSize"),
headerBackgroundImageSize: "headerBackgroundImageSize",
},
{
name: "headerBackgroundImagePosition",
label: trans("style.headerBackgroundImagePosition"),
headerBackgroundImagePosition: "headerBackgroundImagePosition",
}
,{
name: "headerBackgroundImageOrigin",
label: trans("style.headerBackgroundImageOrigin"),
headerBackgroundImageOrigin: "headerBackgroundImageOrigin",
},
{
name: "backgroundImage",
label: trans("style.backgroundImage"),
backgroundImage: "backgroundImage",
},
{
name: "backgroundImageRepeat",
label: trans("style.backgroundImageRepeat"),
backgroundImageRepeat: "backgroundImageRepeat",
},
{
name: "backgroundImageSize",
label: trans("style.backgroundImageSize"),
backgroundImageSize: "backgroundImageSize",
},
{
name: "backgroundImagePosition",
label: trans("style.backgroundImagePosition"),
backgroundImagePosition: "backgroundImagePosition",
},
{
name: "backgroundImageOrigin",
label: trans("style.backgroundImageOrigin"),
backgroundImageOrigin: "backgroundImageOrigin",
},
{
name: "footerBackgroundImage",
label: trans("style.footerBackgroundImage"),
footerBackgroundImage: "footerBackgroundImage",
},
{
name: "footerBackgroundImageRepeat",
label: trans("style.footerBackgroundImageRepeat"),
footerBackgroundImageRepeat: "footerBackgroundImageRepeat",
},
{
name: "footerBackgroundImageSize",
label: trans("style.footerBackgroundImageSize"),
footerBackgroundImageSize: "footerBackgroundImageSize",
},
{
name: "footerBackgroundImagePosition",
label: trans("style.footerBackgroundImagePosition"),
footerBackgroundImagePosition: "footerBackgroundImagePosition",
}
,{
name: "footerBackgroundImageOrigin",
label: trans("style.footerBackgroundImageOrigin"),
footerBackgroundImageOrigin: "footerBackgroundImageOrigin",
}
...ContainerStyle,
] as const;

export const ModalStyle = [
Expand Down