continuing addPage, editPage

parent 5a68cf7a
...@@ -65,7 +65,6 @@ const AddPage: React.FC = () => { ...@@ -65,7 +65,6 @@ const AddPage: React.FC = () => {
</Item> </Item>
<div className='form-footer'> <div className='form-footer'>
<hr className='add-hr' />
<Item style={{ textAlign: 'right' }}> <Item style={{ textAlign: 'right' }}>
<Button type="default" style={{ marginRight: '8px' }} <Button type="default" style={{ marginRight: '8px' }}
onClick={() => navigate("/")}> onClick={() => navigate("/")}>
......
...@@ -6,7 +6,7 @@ const dateFormat = 'YYYY/MM/DD'; ...@@ -6,7 +6,7 @@ const dateFormat = 'YYYY/MM/DD';
const RequestPage: React.FC = () => { const RequestPage: React.FC = () => {
return ( return (
<> <div className='container' style={{minWidth: '1440px'}}>
<div className='filter' style={{margin: '20px 20px 10px', display: 'flex', alignItems: 'center', justifyContent: 'space-between'}}> <div className='filter' style={{margin: '20px 20px 10px', display: 'flex', alignItems: 'center', justifyContent: 'space-between'}}>
<div className='fields' style={{display: 'flex', gap: 14}}> <div className='fields' style={{display: 'flex', gap: 14}}>
<div className="dates"> <div className="dates">
...@@ -106,7 +106,7 @@ const RequestPage: React.FC = () => { ...@@ -106,7 +106,7 @@ const RequestPage: React.FC = () => {
<div className='pagination' style={{marginTop: 300, display: 'flex', justifyContent: "center"}}> <div className='pagination' style={{marginTop: 300, display: 'flex', justifyContent: "center"}}>
<Pagination current={1} defaultCurrent={1} pageSize={1} total={10} /> <Pagination current={1} defaultCurrent={1} pageSize={1} total={10} />
</div> </div>
</> </div>
); );
}; };
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
display: flex; display: flex;
padding: 1rem .5rem; padding: 1rem .5rem;
justify-content: space-between; justify-content: space-between;
min-width: 1440px;
} }
.header_left { .header_left {
......
.form{
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
}
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100vh - 60px); height: calc(100vh - 80px);
/* Adjust based on your header height */
padding: 10px 20px; padding: 10px 20px;
overflow: hidden;
/* Ensure no scrolling on the container */
} }
.form { .form {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding-bottom: 80px; padding-bottom: 80px;
/* Space for the footer */
margin-left: 20px;
/* Add left margin */
} }
.form-footer { .form-footer {
...@@ -26,7 +26,3 @@ ...@@ -26,7 +26,3 @@
padding: 10px 20px; padding: 10px 20px;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
} }
\ No newline at end of file
.add-hr {
margin-top: 20px;
}
\ No newline at end of file
/* styles.css */
.form{
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
}
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -14,10 +7,13 @@ ...@@ -14,10 +7,13 @@
} }
.form { .form {
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
padding-right: 20px;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding-bottom: 150px; margin-bottom: 60px;
margin-left: 20px;
} }
.form-footer { .form-footer {
...@@ -26,6 +22,8 @@ ...@@ -26,6 +22,8 @@
left: 0; left: 0;
width: 100%; width: 100%;
background: white; background: white;
padding: 10px 20px; /* padding: 0px 20px 0px 20px; */
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
text-align: center;
padding-top: 30px;
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment