continuing addPage, editPage

parent 5a68cf7a
......@@ -65,7 +65,6 @@ const AddPage: React.FC = () => {
</Item>
<div className='form-footer'>
<hr className='add-hr' />
<Item style={{ textAlign: 'right' }}>
<Button type="default" style={{ marginRight: '8px' }}
onClick={() => navigate("/")}>
......
......@@ -6,7 +6,7 @@ const dateFormat = 'YYYY/MM/DD';
const RequestPage: React.FC = () => {
return (
<>
<div className='container' style={{minWidth: '1440px'}}>
<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="dates">
......@@ -106,7 +106,7 @@ const RequestPage: React.FC = () => {
<div className='pagination' style={{marginTop: 300, display: 'flex', justifyContent: "center"}}>
<Pagination current={1} defaultCurrent={1} pageSize={1} total={10} />
</div>
</>
</div>
);
};
......
......@@ -4,6 +4,7 @@
display: flex;
padding: 1rem .5rem;
justify-content: space-between;
min-width: 1440px;
}
.header_left {
......
.form{
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
}
.container {
display: flex;
flex-direction: column;
height: calc(100vh - 60px);
height: calc(100vh - 80px);
/* Adjust based on your header height */
padding: 10px 20px;
overflow: hidden;
/* Ensure no scrolling on the container */
}
.form {
flex: 1;
overflow-y: auto;
padding-bottom: 80px;
/* Space for the footer */
margin-left: 20px;
/* Add left margin */
}
.form-footer {
......@@ -25,8 +25,4 @@
background: white;
padding: 10px 20px;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.add-hr {
margin-top: 20px;
}
\ No newline at end of file
/* styles.css */
.form{
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
}
.container {
display: flex;
flex-direction: column;
......@@ -14,10 +7,13 @@
}
.form {
margin-left: 20px;
margin-right: 20px;
margin-top: 10px;
padding-right: 20px;
flex: 1;
overflow-y: auto;
padding-bottom: 150px;
margin-left: 20px;
margin-bottom: 60px;
}
.form-footer {
......@@ -26,6 +22,8 @@
left: 0;
width: 100%;
background: white;
padding: 10px 20px;
/* padding: 0px 20px 0px 20px; */
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