From 466bbbbda03042da2181da96e1a4893847008fd9 Mon Sep 17 00:00:00 2001
From: Andreas Fernandez <a.fernandez@scripting-base.de>
Date: Thu, 5 Mar 2015 08:07:26 +0100
Subject: [PATCH] [TASK] Followup: Make Scheduler tables responsive

Wrap tables in <div class="table-fit"> to make the tables reposonsive.

Resolves: #65532
Releases: master
Change-Id: I76cca7377d7613d560060b17ae3396ca281b99dc
Reviewed-on: http://review.typo3.org/37548
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
---
 .../Controller/SchedulerModuleController.php  |  2 +-
 .../Backend/SchedulerModule/InfoScreen.html   | 61 ++++++++++---------
 2 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
index fd17136aad16..840321c4a0f4 100644
--- a/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
+++ b/typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
@@ -1143,7 +1143,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
 			}
 			$this->getDatabaseConnection()->sql_free_result($res);
 
-			$this->view->assign('table', '<table class="table table-striped table-hover">' . implode(LF, $table) . '</table>');
+			$this->view->assign('table', '<div class="table-fit"><table class="table table-striped table-hover">' . implode(LF, $table) . '</table></div>');
 
 			// Server date time
 			$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'] . ' T (e';
diff --git a/typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html b/typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html
index 4a5744b8589c..c6be71b59cc5 100644
--- a/typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html
+++ b/typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html
@@ -3,35 +3,36 @@
 <p class="lead">
 	<f:translate key="msg.infoScreenIntro" />
 </p>
-
-<table class="table table-striped table-hover">
-	<thead>
-		<tr>
-			<th>
-				<f:translate key="label.name" />
-			</th>
-			<th>
-				<f:translate key="label.extension" />
-			</th>
-			<th colspan="2">
-				<f:translate key="label.description" />
-			</th>
-		</tr>
-	</thead>
-	<tbody>
-		<f:for each="{registeredClasses}" key="class" as="classInfo">
+<div class="table-responsive">
+	<table class="table table-striped table-hover">
+		<thead>
 			<tr>
-				<td>{classInfo.title}</td>
-				<td>{classInfo.extension}</td>
-				<td>{classInfo.description}</td>
-				<td>
-					<div class="btn-group" role="group">
-						<span class="btn btn-default">
-							<f:be.buttons.icon uri="{s:moduleLink(controller:'scheduler', action: 'add', arguments: '{class: class}')}" icon="actions-document-new" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:new')}"/>
-						</span>
-					</div>
-				</td>
+				<th>
+					<f:translate key="label.name" />
+				</th>
+				<th>
+					<f:translate key="label.extension" />
+				</th>
+				<th colspan="2">
+					<f:translate key="label.description" />
+				</th>
 			</tr>
-		</f:for>
-	</tbody>
-</table>
+		</thead>
+		<tbody>
+			<f:for each="{registeredClasses}" key="class" as="classInfo">
+				<tr>
+					<td>{classInfo.title}</td>
+					<td>{classInfo.extension}</td>
+					<td>{classInfo.description}</td>
+					<td>
+						<div class="btn-group" role="group">
+							<span class="btn btn-default">
+								<f:be.buttons.icon uri="{s:moduleLink(controller:'scheduler', action: 'add', arguments: '{class: class}')}" icon="actions-document-new" title="{f:translate(key:'LLL:EXT:lang/locallang_common.xlf:new')}"/>
+							</span>
+						</div>
+					</td>
+				</tr>
+			</f:for>
+		</tbody>
+	</table>
+</div>
\ No newline at end of file
-- 
GitLab