@@ -376,10 +363,6 @@ export class TargetSelectorModal extends React.Component<
cancel={cancel}
done={() => done(selectedList)}
action={`Select (${selectedList.length})`}
- style={{
- width: '780px',
- height: '420px',
- }}
primaryButtonProps={{
primary: !hasStatus,
warning: hasStatus,
@@ -387,7 +370,7 @@ export class TargetSelectorModal extends React.Component<
}}
{...props}
>
-
+
{!hasAvailableDrives() ? (
Plug a target drive
) : (
-
+
) => {
if (t !== null) {
diff --git a/lib/gui/app/css/main.css b/lib/gui/app/css/main.css
index aacf3d32..03ab634d 100644
--- a/lib/gui/app/css/main.css
+++ b/lib/gui/app/css/main.css
@@ -63,5 +63,5 @@ button:focus,
}
.disabled {
- opacity: 0.2;
+ opacity: 0.4;
}
diff --git a/lib/gui/app/styled-components.tsx b/lib/gui/app/styled-components.tsx
index 10d245ff..19ba5ea7 100644
--- a/lib/gui/app/styled-components.tsx
+++ b/lib/gui/app/styled-components.tsx
@@ -121,8 +121,7 @@ export const DetailsText = (props: FlexProps) => (
/>
);
-export const Modal = styled((props) => {
- const { style = { height: 420 } } = props;
+export const Modal = styled(({ style, ...props }) => {
return (
{
>
);
})`
> div {
- padding: 30px;
+ padding: 24px 30px;
height: calc(100% - 80px);
- overflow-y: auto;
+
+ ::-webkit-scrollbar {
+ display: none;
+ }
> h3 {
margin: 0;
@@ -178,3 +183,16 @@ export const Modal = styled((props) => {
}
}
`;
+
+export const ScrollableFlex = styled(Flex)`
+ overflow: auto;
+
+ ::-webkit-scrollbar {
+ display: none;
+ }
+
+ > div > div {
+ /* This is required for the sticky table header in TargetsTable */
+ overflow-x: visible;
+ }
+`;