Skip to content

Commit

Permalink
Tweak some field sizings
Browse files Browse the repository at this point in the history
  • Loading branch information
hatton committed Jan 27, 2024
1 parent 796e5ca commit 635c949
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/app.global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ select,
// disable for 0.87 because auto performed better when user makes font size large.
// height: $field-height; //match textarea so grid rows are the same height
}
.autoForm {
a {
margin-top: 3px; // helps it line up with label since it doesn't have the same padding as the text boxes
}
}
textarea {
border-style: inset;
resize: none;
Expand Down
4 changes: 2 additions & 2 deletions src/components/project/ProjectTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
margin-bottom: 20px;

&.field__newSection {
margin-top: 2em;
margin-top: 50px;
}
label {
text-align: right;
width: 150px;
margin-right: 1em;
margin-top: 7px; // line up the label with the first line of text in the input field
margin-top: 4px; // line up the label with the first line of text in the input field
}

textarea {
Expand Down
5 changes: 3 additions & 2 deletions src/model/field/fields.json5
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
key: "location",
englishLabel: "Location/Address",
tagInSayMoreClassic: "Location",
cssClass: "field__newSection",
cssClass: "field__newSection, text-block",

multipleLines: true,
tabIndex: 3
},
Expand Down Expand Up @@ -71,13 +72,13 @@
{
key: "grantId",
englishLabel: "Grant ID",
cssClass: "field__newSection",
tabIndex: 7
},
{
key: "fundingProjectTitle",
englishLabel: "Funding Project Title",
tagInSayMoreClassic: "FundingProjectTitle",
cssClass: "field__newSection",
tabIndex: 8
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/other/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function getKey(index: number): string | undefined {
const path = locateDependencyForFilesystemCall("assets/.segment");
// this .gitignore'd file, if it exists, should contain a comma-separated list of keys: "testKey, productionKey"
if (!fs.existsSync(path)) {
console.error(
`No "assets/.segment" file found at ${path}. Will not send analytics.`
console.log(
`No "assets/.segment" file found at ${path}. Will not send analytics. This is expected in development mode.`
);
return undefined;
}
Expand Down

0 comments on commit 635c949

Please sign in to comment.