Skip to content

Commit

Permalink
lowering some font sizes in the tray components
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Aug 20, 2024
1 parent cc99a56 commit 1bedef8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/trays/layers/layer-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const LayerCard = ({ index, layer }) => {
<Avatar variant="outlined">
<LayerIcon size="lg" color="primary" />
</Avatar>
<Typography level="title-md" sx={{ flex: 1 }}>
<Typography level="title-sm" sx={{ flex: 1 }}>
{layer.properties.product_name}
</Typography>
<Switch
Expand Down
4 changes: 2 additions & 2 deletions src/components/trays/layers/tray-contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const TrayContents = () => {
return (
<Stack p={ 2 }>
<Button
size="lg"
size="md"
startDecorator={ <AddLayerIcon /> }
onClick={ handleClickToggleState }
>Add a Model Run</Button>
Expand All @@ -36,7 +36,7 @@ export const TrayContents = () => {
return (
<Stack p={ 2 }>
<Button
size="lg"
size="md"
color="warning"
startDecorator={ <CloseIcon /> }
onClick={ handleClickToggleState }
Expand Down
2 changes: 1 addition & 1 deletion src/components/trays/model-selection/DropDownOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function DropDownOptions(data) {
return (
<Fragment>
{data.data[data.type].filter(item => item !== "").map(item => (
<Option key={item} value={item}>{item}</Option>
<Option key={item} value={item} sx={{ fontSize: "sm" }}>{item}</Option>
))}
</Fragment>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/trays/model-selection/catalogItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ export default function CatalogItems(data) {
<Stack key={ itemIndex } spacing={ 1 }>
<Accordion
key={ itemIndex }
sx={{ p: 0 }}
sx={{ p: 0, fontSize: "sm" }}
expanded={accordianDateIndex === itemIndex}
onChange={(event, expanded) => { setAccordianDateIndex(expanded ? itemIndex : null); }}>

<AccordionSummary sx={{ fontSize: 15 }}> {catalog['id']} </AccordionSummary>
<AccordionSummary sx={{ fontSize: 'sm' }}> { catalog['id'] } </AccordionSummary>

<AccordionDetails> {
// loop through the data members and put them away
Expand All @@ -192,7 +192,7 @@ export default function CatalogItems(data) {
.map((mbr, mbrIdx) => (
// create the checkbox
<Checkbox
sx={{ m: .5, fontSize: 12 }}
sx={{ m: .5, fontSize: 'sm' }}
key={ mbrIdx }
checked={ getCheckedState(mbr.group) }
label={
Expand Down
2 changes: 1 addition & 1 deletion src/components/trays/model-selection/synopticTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export const SynopticTabForm = () => {
<Button type="reset" onClick={ resetForm }>Reset</Button>
</Stack>

<Divider sx={{m: 2}}/>
<Divider sx={{ m: 2 }}/>

<Stack>
{ <CatalogItems data={ catalogData } isTropical={ false }/> }
Expand Down
2 changes: 1 addition & 1 deletion src/components/trays/model-selection/tropicalTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const TropicalTabForm = () => {
<Stack spacing={1}>
<Select name="tropical-storm-name" value={ tropicalStorm } placeholder="Please select a tropical storm" onChange={(e, newValue) => {
setTropicalStorm(newValue); }}>
<DropDownOptions data={dropDownData} type={'storm_names'} />
<DropDownOptions data={dropDownData} type={'storm_names'}/>
</Select>
<Select name="tropical-advisory" value={ tropicalAdvisory } placeholder="Please select an advisory" onChange={(e, newValue) => {
setTropicalAdvisory(newValue); }}>
Expand Down

0 comments on commit 1bedef8

Please sign in to comment.