Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita05e43e

Browse files
fixed button cut-off issue
1 parent13c973a commita05e43e

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

‎client/packages/lowcoder/src/comps/comps/buttonComp/buttonComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const ButtonTmpComp = (function () {
136136
};
137137
returnnewUICompBuilder(childrenMap,(props)=>{
138138
return(
139-
<ButtonCompWrapperdisabled={props.disabled}>
139+
<ButtonCompWrapper$disabled={props.disabled}>
140140
<EditorContext.Consumer>
141141
{(editorState)=>(
142142
<Button100

‎client/packages/lowcoder/src/comps/comps/buttonComp/buttonCompConstants.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ export const Button100 = styled(Button)<{ $buttonStyle?: ButtonStyleType }>`
6868
line-height:${(props)=>props.$buttonStyle?.lineHeight};
6969
`;
7070

71-
exportconstButtonCompWrapper=styled.div<{disabled:boolean}>`
71+
exportconstButtonCompWrapper=styled.div<{$disabled:boolean}>`
72+
display: flex;
73+
7274
// The button component is disabled but can respond to drag & select events
7375
${(props)=>
74-
props.disabled&&
76+
props.$disabled&&
7577
`
7678
cursor: not-allowed;
7779
button:disabled {

‎client/packages/lowcoder/src/comps/comps/buttonComp/dropdownComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const DropdownTmpComp = (function () {
116116
);
117117

118118
return(
119-
<ButtonCompWrapperdisabled={props.disabled}>
119+
<ButtonCompWrapper$disabled={props.disabled}>
120120
{props.onlyMenu ?(
121121
<Dropdown
122122
disabled={props.disabled}

‎client/packages/lowcoder/src/comps/comps/buttonComp/linkComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const LinkTmpComp = (function () {
9595
// chrome86 bug: button children should not contain only empty span
9696
consthasChildren=hasIcon(props.prefixIcon)||!!props.text||hasIcon(props.suffixIcon);
9797
return(
98-
<ButtonCompWrapperdisabled={props.disabled}>
98+
<ButtonCompWrapper$disabled={props.disabled}>
9999
<Link
100100
$animationStyle={props.animationStyle}
101101
ref={props.viewRef}

‎client/packages/lowcoder/src/comps/comps/buttonComp/scannerComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const ScannerTmpComp = (function () {
134134
};
135135

136136
return(
137-
<ButtonCompWrapperdisabled={props.disabled}>
137+
<ButtonCompWrapper$disabled={props.disabled}>
138138
<Button100
139139
ref={props.viewRef}
140140
$buttonStyle={props.style}

‎client/packages/lowcoder/src/comps/comps/buttonComp/toggleButtonComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const ToggleTmpComp = (function () {
7272

7373
return(
7474
<ButtonCompWrapperStyled
75-
disabled={props.disabled}
75+
$disabled={props.disabled}
7676
$align={props.alignment}
7777
$showBorder={props.showBorder}
7878
$animationStyle={props.animationStyle}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp