Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
tizayi committed Apr 23, 2024
1 parent 51e22fa commit cedc96b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Dedi-web

[![dedi-web code CI](https://github.com/tizayi/dedi-web/actions/workflows/code.yml/badge.svg)](https://github.com/tizayi/dedi-web/actions/workflows/code.yml)
[![gh-pages](https://github.com/tizayi/dedi-web/actions/workflows/deploy.yml/badge.svg)](https://github.com/tizayi/dedi-web/actions/workflows/deploy.yml)
[![dedi-web code CI](https://github.com/DiamondLightSource/dedi-web/actions/workflows/code.yml/badge.svg)](https://github.com/DiamondLightSource/dedi-web/actions/workflows/code.yml)
[![gh-pages](https://github.com/DiamondLightSource/dedi-web/actions/workflows/deploy.yml/badge.svg)](https://github.com/DiamondLightSource/dedi-web/actions/workflows/deploy.yml)

https://tizayi.github.io/dedi-web/
https://DiamondLightSource.github.io/dedi-web/

DEtector DIstance (DEDI) is a client only Q-Range calculator. Based on the dedi perspective within DAWN science. Built using react, typescript, vite, mui, zustand, and h5web/lib.

Expand Down
2 changes: 1 addition & 1 deletion src/data-entry/beamstop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function BeamStopDataEntry(): JSX.Element {
{/* Diameter */}
<Typography flexGrow={1}>
{" "}
Diameter: {beamstop.diameter.toNumber()}{" "}
Diameter: {beamstop.diameter.toNumber().toFixed(2)}{" "}
</Typography>
<FormControl>
<InputLabel>units </InputLabel>
Expand Down
3 changes: 2 additions & 1 deletion src/data-entry/detectorStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const useDetectorStore = create<DetectorStore>((set) => ({
},
})),
addNewDetector: (name: string, detector: Detector) =>
{ (state: DetectorStore) =>
{ (state: DetectorStore) =>{
state.detectorList[name] = detector;
}
},
}));
15 changes: 14 additions & 1 deletion src/dialogs/detectorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export default function DetectorDialog(props: {
};

return (
<Dialog open={props.open} keepMounted onClose={props.handleClose}>
<Dialog
open={props.open}
keepMounted onClose={props.handleClose}
maxWidth={"md"}>
<DialogTitle>{"Detectors"}</DialogTitle>
<DialogContent>
<Stack spacing={2}>
Expand Down Expand Up @@ -77,6 +80,11 @@ export default function DetectorDialog(props: {
setResolutionWidth(parseFloat(event.target.value))
}
size="small"
InputProps={{
endAdornment: (
<InputAdornment position="end">px</InputAdornment>
),
}}
/>
</Grid>
<Grid item xs={3}>
Expand All @@ -87,6 +95,11 @@ export default function DetectorDialog(props: {
setResolutionHeight(parseFloat(event.target.value))
}
size="small"
InputProps={{
endAdornment: (
<InputAdornment position="end">px</InputAdornment>
),
}}
/>
</Grid>
<Grid item xs={4}>
Expand Down
2 changes: 1 addition & 1 deletion src/results/rangeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function RangeTable(props: { qRange: UnitRange }): JSX.Element {
.to(resultsStore.dUnits as string);

return (
<Box flexGrow={1}>
<Box flexGrow={1} >
<TableContainer component={Paper}>
<Table sx={{ minWidth: 50 }} aria-label="simple table" size="small">
{/* TABLE HEAD */}
Expand Down

0 comments on commit cedc96b

Please sign in to comment.