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", display: "flex",
flexDirection: "column", flexDirection: "column",
}} }}
bodyStyle={{ styles={{
flex: 1, body: {
overflowY: "auto", flex: 1,
padding: "0", overflowY: "auto",
margin: "20px 0", padding: "0",
margin: "20px 0",
},
}} }}
actions={[ actions={[
<Button <Button

View File

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

View File

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

View File

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

View File

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