Skip to content

Commit

Permalink
Fix findings styling (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel authored Aug 23, 2024
1 parent 93f2f03 commit 4d75574
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/findings/FindingDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { getLocalisedRegionName } from 'utils/i18nCountries'
const FormattedMarkdown = ({ children }) => {
return (
<Markdown
className="[&>p]:my-5"
options={{
overrides: {
MAT: {
Expand Down
2 changes: 1 addition & 1 deletion components/findings/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const Form = ({ defaultValues, onSubmit }) => {
return (
<>
<Modal
// className='px-8'
className="w-full max-w-[1000px] -translate-x-1/2 -translate-y-1/2"
show={showPreview}
onHideClick={() => setShowPreview(!showPreview)}
>
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.6",
"ooni-components": "0.7.0-alpha.7",
"pretty-ms": "^8.0.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
Expand Down
4 changes: 3 additions & 1 deletion pages/findings/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const Create = () => {
<div className="container">
<LoginRequiredModal show={showModal} />
<div className="flex justify-between items-center">
<h1>{intl.formatMessage({ id: 'Findings.Create.Title' })}</h1>
<h1 className="mt-16 mb-8">
{intl.formatMessage({ id: 'Findings.Create.Title' })}
</h1>
<Link href="/findings/dashboard">
<button className="btn btn-primary-hollow" type="button">
{intl.formatMessage({ id: 'Findings.Dashboard.ShortTitle' })}
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"

ooni-components@0.7.0-alpha.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==
ooni-components@0.7.0-alpha.7:
version "0.7.0-alpha.7"
resolved "https://registry.yarnpkg.com/ooni-components/-/ooni-components-0.7.0-alpha.7.tgz#2f43791b41e2ae064b94ff46c6cdbb23e809e344"
integrity sha512-2/fI7XFbOzGPt84P9LMbmYGYx8tMIhRNtSsPnq0a4Hm4Sk7b27TJIHMwveL1SUfgzgc4zl8lzyHi26W7YUdDTw==
dependencies:
class-variance-authority "^0.7.0"
clsx "^2.1.1"
Expand Down

0 comments on commit 4d75574

Please sign in to comment.