Skip to content
Snippets Groups Projects
Commit e305d7ae authored by Manoa Harinjo's avatar Manoa Harinjo
Browse files

Merge branch 'main' of https://git.neogeo.fr/onegeo-suite/libs/gatsby-theme-onegeo into feat/text

parents fee8a3a8 e85fcda6
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,12 @@ const Section = (props: ISection) => {
>
{section.title && (
<h2
className={twMerge("text-3xl font-extrabold", oClass.title)}
className={twMerge(
// "text-2xl font-extrabold sm:text-5xl",
// breakpoint can 'break' overrides in project (smeag)
"text-5xl font-extrabold",
oClass.title
)}
>
{section.title}
</h2>
......@@ -136,7 +141,8 @@ const Section = (props: ISection) => {
{section.subtitle && (
<h4
className={twMerge(
"mt-2 text-2xl font-bold",
// "mt-2 text-xl font-bold sm:text-3xl",
"mt-2 text-3xl font-bold",
oClass.subtitle
)}
>
......
......@@ -28,7 +28,7 @@ const Text = (props: IText) => {
{title && (
<h2
className={twMerge(
"font-extrabold sm:text-4xl",
"text-2xl font-extrabold sm:text-4xl",
oClass.title
)}
>
......
......@@ -169,7 +169,12 @@ const Component = (props: IComponent) => {
let img = images?.length ? images[0].src : undefined
var oClass = restProps.options ? restProps.options.class : ""
return <Image image={img} className={oClass} />
var objectFit = restProps.options?.objectFit
? restProps.options.objectFit
: ""
return (
<Image image={img} className={oClass} objectFit={objectFit} />
)
case "mapgl":
return <div>Carte Maplibre</div>
case "geoportal":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment