Skip to content

Commit

Permalink
Add wrap property to some flex boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbmhunter committed Jun 18, 2024
1 parent 713bd26 commit efd0580
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ import {
FlowControl,
} from 'src/model/Settings/PortConfigurationSettings/PortConfigurationSettings';
import { portStateToButtonProps } from 'src/view/Components/PortStateToButtonProps';
import styles from './PortConfigurationSettingsView.module.css';
import styles from './PortSettingsView.module.css';

interface Props {
app: App;
}

function PortConfigurationView(props: Props) {
function PortSettingsView(props: Props) {
const { app } = props;

return (
<div className={styles.noOutline} style={{ display: 'flex', flexDirection: 'column', alignItems: 'start' }}>
<div style={{ height: '20px' }}></div>

<Box display="flex" flexDirection="row">
<div style={{ display: 'flex', flexDirection: 'row', flexWrap: 'wrap' }}>
{/* ============================================================== */}
{/* BAUD RATE */}
{/* ============================================================== */}
Expand Down Expand Up @@ -156,7 +156,7 @@ function PortConfigurationView(props: Props) {
</Select>
</FormControl>
</Tooltip>
</Box>
</div>

{/* ============================================================== */}
{/* FLOW CONTROL */}
Expand Down Expand Up @@ -273,7 +273,7 @@ function PortConfigurationView(props: Props) {

<div style={{ height: '20px' }}></div>

<div id="row-with-select-port-and-open-port-buttons" style={{ display: 'flex', gap: '20px' }}>
<div id="row-with-select-port-and-open-port-buttons" style={{ display: 'flex', flexWrap: 'wrap', gap: '20px' }}>
{/* =============================================================== */}
{/* SELECT PORT BUTTON */}
{/* =============================================================== */}
Expand Down Expand Up @@ -350,4 +350,4 @@ function PortConfigurationView(props: Props) {
);
}

export default observer(PortConfigurationView);
export default observer(PortSettingsView);
2 changes: 1 addition & 1 deletion src/view/Settings/SettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { observer } from 'mobx-react-lite';
import { App } from '../../model/App';
import { SettingsCategories } from '../../model/Settings/Settings';

import PortConfigurationSettingsView from './PortConfigurationSettings/PortConfigurationSettingsView';
import PortConfigurationSettingsView from './PortSettings/PortSettingsView';
import DataProcessingSettingsView from './RxSettings/RxSettingsView';
import DisplaySettingsView from './DisplaySettings/DisplaySettingsView';
import TxSettingsView from './TxSettings/TxSettingsView';
Expand Down

0 comments on commit efd0580

Please sign in to comment.