Skip to content

Commit

Permalink
Fixed text sizes causing weird behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
smilefx committed Aug 29, 2024
1 parent 5724826 commit 2407b00
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ fun PropertiesBuilder.cssBuilder(componentViewData: ComponentViewData) {

fun PropertiesBuilder.cssBuilder(componentViewData: UIComponentData) {
cssBuilder(componentViewData as ComponentViewData)
fontBuilder(componentViewData)
}

fun PropertiesBuilder.cssBuilder(componentViewData: LabeledUIComponentData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ val ColorPicker = FC<ColorPickerProps> { props ->
defaultValue = props.data.selectedColor
value = props.data.selectedColor
css {
fontBuilder(props.data)
position = Position.absolute
top = 0.px
left = 0.px
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ val PasswordField = FC<PasswordFieldProps> { props ->
fontBuilder(props.data)
opacity = number(0.5)
}
textIndent = 20.em
}
onChange = {
val value = it.target.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ val ProgressBar = FC<ProgressBarProps> { props ->
cssBuilderIntern(props.data)
}

bgwVisuals {
className = ClassName("visuals")
+VisualBuilder.build(props.data.visual)
}

bgwProgressBar {
id = "${props.data.id}--bar"
className = ClassName("progress-bar")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ val TextArea = FC<TextAreaProps> { props ->
inputBuilder(props.data)
resize = None.none
boxSizing = BoxSizing.borderBox
paddingLeft = 20.em
paddingTop = 10.em
paddingRight = 20.em
paddingBottom = 10.em

placeholder {
fontBuilder(props.data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ val TextField = FC<TextFieldProps> { props ->
fontBuilder(props.data)
opacity = number(0.5)
}
textIndent = 20.em
}
onChange = {
val value = it.target.value
Expand Down

0 comments on commit 2407b00

Please sign in to comment.