diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfiles.css b/frontend/src/Settings/Profiles/Delay/DelayProfiles.css index 3cf3e9020..efc0b14fa 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfiles.css +++ b/frontend/src/Settings/Profiles/Delay/DelayProfiles.css @@ -1,3 +1,7 @@ +.horizontalScroll { + overflow-x: auto; +} + .delayProfiles { user-select: none; } @@ -25,3 +29,10 @@ width: $dragHandleWidth; text-align: center; } + +@media only screen and (max-width: $breakpointSmall) { + .horizontalScroll { + overflow-y: hidden; + width: 100%; + } +} diff --git a/frontend/src/Settings/Profiles/Delay/DelayProfiles.js b/frontend/src/Settings/Profiles/Delay/DelayProfiles.js index a745da9d4..6c81357a5 100644 --- a/frontend/src/Settings/Profiles/Delay/DelayProfiles.js +++ b/frontend/src/Settings/Profiles/Delay/DelayProfiles.js @@ -1,11 +1,12 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import { icons } from 'Helpers/Props'; +import { icons, scrollDirections } from 'Helpers/Props'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import Measure from 'Components/Measure'; import PageSectionContent from 'Components/Page/PageSectionContent'; +import Scroller from 'Components/Scroller/Scroller'; import DelayProfileDragSource from './DelayProfileDragSource'; import DelayProfileDragPreview from './DelayProfileDragPreview'; import DelayProfile from './DelayProfile'; @@ -71,48 +72,59 @@ class DelayProfiles extends Component { errorMessage="Unable to load Delay Profiles" {...otherProps} > -
-
Protocol
-
Usenet Delay
-
Torrent Delay
-
Tags
-
- -
- { - items.map((item, index) => { - return ( - - ); - }) + +
+
+
Protocol
+
Usenet Delay
+
Torrent Delay
+
Tags
+
- -
- - { - defaultProfile && -
- + { + items.map((item, index) => { + return ( + + ); + }) + } + +
- } + + { + defaultProfile ? +
+ +
: + null + } +
+