Skip to content

Commit

Permalink
Mat form styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Aug 7, 2024
1 parent f1fb8e6 commit 5183bd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion components/aggregation/mat/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export const Form = ({ onSubmit, query }) => {
render={({ field }) => (
<Input
{...field}
className="w-full"
label={intl.formatMessage({ id: 'Search.Sidebar.From' })}
onFocus={() => setShowDatePicker(true)}
onKeyDown={() => setShowDatePicker(false)}
Expand All @@ -335,6 +336,7 @@ export const Form = ({ onSubmit, query }) => {
render={({ field }) => (
<Input
{...field}
className="w-full"
label={intl.formatMessage({ id: 'Search.Sidebar.Until' })}
onFocus={() => setShowDatePicker(true)}
onKeyDown={() => setShowDatePicker(false)}
Expand All @@ -353,7 +355,7 @@ export const Form = ({ onSubmit, query }) => {
/>
)}
</div>
<div className="w-full sm:w-5/12 md:w-3/12 lg:w-1/12">
<div className="w-full sm:w-5/12 md:w-3/12 lg:w-[9.5%]">
<Controller
name="time_grain"
control={control}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"markdown-to-jsx": "^7.4.0",
"next": "^14.2.4",
"nprogress": "^0.2.0",
"ooni-components": "0.7.0-alpha.5",
"ooni-components": "0.7.0-alpha.6",
"pretty-ms": "^8.0.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4924,10 +4924,10 @@ onetime@^5.1.0, onetime@^5.1.2:
dependencies:
mimic-fn "^2.1.0"

[email protected].5:
version "0.7.0-alpha.5"
resolved "https://registry.yarnpkg.com/ooni-components/-/ooni-components-0.7.0-alpha.5.tgz#6977447a8e8b906cc78080ab62e49bc4583f4b97"
integrity sha512-w7tovkFzeTuAelG8Wg5rnoGOkVdpp99ALlJFCBz2fklAoFg3hjYMWPkNZTDB5dA0pr8IkXYg4t181V66nsVjjw==
[email protected].6:
version "0.7.0-alpha.6"
resolved "https://registry.yarnpkg.com/ooni-components/-/ooni-components-0.7.0-alpha.6.tgz#a8f380e0796ac23b602201dbc9ea0d17a72c5d6a"
integrity sha512-+f8N91+o9XfKs08eSSjoXS4lZdp1he643orI0C0LPjZBf2ZpfVCGNatfr3LaPKiQZqdmz6Mpezp7jXkcLDgJhQ==
dependencies:
class-variance-authority "^0.7.0"
clsx "^2.1.1"
Expand Down

0 comments on commit 5183bd8

Please sign in to comment.