Fixed styles

This commit is contained in:
Tom Butcher 2025-04-06 14:03:38 +01:00
parent 29b0ab533c
commit e6c1b201a6
5 changed files with 48 additions and 11 deletions

View File

@ -61,11 +61,13 @@ const BlogView = ({ setCurrentView, slug }) => {
display: "flex",
flexDirection: "column",
}}
bodyStyle={{
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
styles={{
body: {
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
},
}}
actions={[
<Button

View File

@ -82,11 +82,13 @@ const BlogsView = ({ setCurrentView }) => {
display: "flex",
flexDirection: "column",
}}
bodyStyle={{
flex: 1,
overflowY: "hidden", // Changed from auto to hidden
display: "flex",
flexDirection: "column",
styles={{
body: {
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
},
}}
actions={[
<Button

View File

@ -17,6 +17,16 @@ const CVView = ({ setCurrentView }) => {
style={{
width: isMobile ? "100%" : "70%",
height: isMobile ? "100%" : "70%",
display: "flex",
flexDirection: "column",
}}
styles={{
body: {
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
},
}}
actions={[
<Button

View File

@ -43,6 +43,16 @@ const ContactView = ({ setCurrentView }) => {
style={{
width: isMobile ? "100%" : "70%",
height: isMobile ? "100%" : "70%",
display: "flex",
flexDirection: "column",
}}
styles={{
body: {
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
},
}}
actions={[
<Button

View File

@ -1,4 +1,4 @@
import React from "react";
import PropTypes from "prop-types";
import { useMediaQuery } from "react-responsive";
import { Button, Card, Flex } from "antd";
const ExperienceView = ({ setCurrentView }) => {
@ -11,6 +11,16 @@ const ExperienceView = ({ setCurrentView }) => {
style={{
width: isMobile ? "100%" : "70%",
height: isMobile ? "100%" : "70%",
display: "flex",
flexDirection: "column",
}}
styles={{
body: {
flex: 1,
overflowY: "auto",
padding: "0",
margin: "20px 0",
},
}}
actions={[
<Button
@ -65,4 +75,7 @@ const ExperienceView = ({ setCurrentView }) => {
);
};
ExperienceView.propTypes = {
setCurrentView: PropTypes.func.isRequired,
};
export default ExperienceView;