Skip to content

Commit

Permalink
Fix missing + button for small screens in variables editor
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Sep 26, 2024
1 parent 0c93df6 commit 902372d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion newIDE/app/src/VariablesList/VariablesListToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,16 @@ const VariablesListToolbar = React.memo<Props>((props: Props) => {
)}
</Column>
<Column noMargin>
{props.isNarrow ? null : (
{props.isCompact ? null : props.isNarrow ? (
<IconButton
key="add-variable"
tooltip={t`Add variable`}
onClick={props.onAdd}
size="small"
>
<Add style={props.iconStyle} />
</IconButton>
) : (
<FlatButton
primary
key="add-variable"
Expand Down

0 comments on commit 902372d

Please sign in to comment.