Просмотр исходного кода

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 лет назад
Родитель
Сommit
a4542b62b0
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/components/organisms/WizardInstances/WizardInstances.jsx

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

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