ソースを参照

Move scroll from instances content to table body

If the wizard instances (VMs) table needs scroll, add scroll only to
the table's body instead fo scrolling the whole content.
Sergiu Miclea 8 年 前
コミット
a4542b62b0

+ 3 - 2
src/components/organisms/WizardInstances/WizardInstances.jsx

@@ -46,6 +46,7 @@ const LoadingWrapper = styled.div`
 const InstancesWrapper = styled.div`
 const InstancesWrapper = styled.div`
   margin-left: -32px;
   margin-left: -32px;
   flex-grow: 1;
   flex-grow: 1;
+  overflow: auto;
 `
 `
 const InstanceContent = styled.div`
 const InstanceContent = styled.div`
   display: flex;
   display: flex;
@@ -120,8 +121,8 @@ const FilterSeparator = styled.div`
 const Pagination = styled.div`
 const Pagination = styled.div`
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: center;
-  margin-bottom: 64px;
-  margin-top: 32px;
+  margin: 32px 0 16px 0;
+  flex-shrink: 0;
 `
 `
 const Page = styled.div`
 const Page = styled.div`
   width: 30px;
   width: 30px;