Skip to content

Commit dd6f42f

Browse files
authored
Merge branch 'dev' into fix/anon_usage_log
2 parents 03ec0e9 + fab9047 commit dd6f42f

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

client/packages/lowcoder-design/src/components/ScrollBar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ export const ScrollBar = React.memo(({
9999

100100
return hideScrollbar ? (
101101
<ScrollBarWrapper
102-
className={className}
103-
$hideplaceholder={$hideplaceholder}
104-
$overflow={overflow}
102+
className={className}
105103
>
106104
{prefixNode}
107105
{children}
@@ -110,8 +108,6 @@ export const ScrollBar = React.memo(({
110108
) : (
111109
<ScrollBarWrapper
112110
className={className}
113-
$hideplaceholder={$hideplaceholder}
114-
$overflow={overflow}
115111
>
116112
<SimpleBar
117113
style={combinedStyle}

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,13 @@ export const TableCompView = React.memo((props: {
10441044
}
10451045

10461046
if (antdColumns.length === 0) {
1047-
return <EmptyContent text={trans("table.emptyColumns")} />;
1047+
return (
1048+
<div>
1049+
{toolbar.position === "above" && !hideToolbar && toolbarView}
1050+
<EmptyContent text={trans("table.emptyColumns")} />
1051+
{toolbar.position === "below" && !hideToolbar && toolbarView}
1052+
</div>
1053+
);
10481054
}
10491055

10501056
const hideScrollbar = !showHorizontalScrollbar && !showVerticalScrollbar;

client/packages/lowcoder/src/comps/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ import { TreeSelectComp } from "./comps/treeComp/treeSelectComp";
192192
import { DrawerComp } from "./hooks/drawerComp";
193193
import { ModalComp } from "./hooks/modalComp";
194194
import { defaultCollapsibleContainerData } from "./comps/containerComp/collapsibleContainerComp";
195+
import { ContainerComp as FloatTextContainerComp } from "./comps/containerComp/textContainerComp";
195196

196197
type Registry = {
197198
[key in UICompType]?: UICompManifest;
@@ -605,7 +606,7 @@ export var uiCompMap: Registry = {
605606
categories: ["layout"],
606607
icon: FloatingTextCompIcon,
607608
keywords: trans("uiComp.floatTextContainerCompKeywords"),
608-
comp: ContainerComp,
609+
comp: FloatTextContainerComp,
609610
withoutLoading: true,
610611
layoutInfo: {
611612
w: 12,

client/packages/lowcoder/src/layout/gridLayout.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,6 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
127127
componentWillUnmount() {
128128
// Cleanup throttled debug function
129129
this.throttleDebug.cancel();
130-
131-
// Clear any remaining dragging data
132-
draggingUtils.clearData();
133-
134-
// Remove any remaining event listeners
135-
if (this.ref.current) {
136-
// The event listener is added in the render method using onKeyDown prop
137-
// No need to manually remove it as React handles cleanup
138-
}
139130
}
140131

141132
static getDerivedStateFromProps(

client/packages/lowcoder/src/pages/userAuth/authComponents.tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Col, Row, Typography } from "antd";
1111
import { getBrandingSetting } from "@lowcoder-ee/redux/selectors/enterpriseSelectors";
1212
import { useSelector } from "react-redux";
1313
import { buildMaterialPreviewURL } from "@lowcoder-ee/util/materialUtils";
14+
import { isEmpty } from "lodash";
1415

1516
const StyledBrandingColumn = styled(Col)<{$bgImage?: string | null}>`
1617
background-color: rgb(234, 234, 234);
@@ -223,32 +224,38 @@ export const AuthContainer = (props: {
223224
isEE?: boolean;
224225
orgId?: string;
225226
}) => {
227+
const brandingSettings = useSelector(getBrandingSetting);
228+
229+
const showEEBranding = useMemo(() => {
230+
return props.isEE && !isEmpty(brandingSettings);
231+
}, [props.isEE, brandingSettings]);
232+
226233
return (
227-
<AuthCardContainer $isEE={props.isEE}>
228-
{!props.isEE && (
234+
<AuthCardContainer $isEE={showEEBranding}>
235+
{!showEEBranding && (
229236
<AuthCardHeading
230237
$type={props.type}
231-
$isEE={props.isEE}
238+
$isEE={showEEBranding}
232239
>
233240
{props.heading || ""}
234241
</AuthCardHeading>
235242
)}
236-
<AuthCard $isEE={props.isEE}>
243+
<AuthCard $isEE={showEEBranding}>
237244
<BrandingWrapper
238-
isEE={props.isEE}
245+
isEE={showEEBranding}
239246
>
240-
{props.isEE && (
247+
{showEEBranding && (
241248
<AuthCardHeading
242249
$type={props.type}
243-
$isEE={props.isEE}
250+
$isEE={showEEBranding}
244251
>
245252
{props.heading || ""}
246253
</AuthCardHeading>
247254
)}
248255
{props.children}
249256
</BrandingWrapper>
250257
</AuthCard>
251-
{ props.subHeading && !props.isEE && (
258+
{ props.subHeading && !showEEBranding && (
252259
<AuthCardSubFooter>
253260
<img src={favicon} alt={"Lowcoder | " + trans("productDesc")} width="20px"/>
254261
<a href="https://lowcoder.cloud" target="_blank" rel="noreferrer">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy