Repository: ambari
Updated Branches:
  refs/heads/trunk 61cebe7c4 -> 7c3bcc9e8


AMBARI-19922. HiveView2.0: Long table name spills out of table panel (pallavkul)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7c3bcc9e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7c3bcc9e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7c3bcc9e

Branch: refs/heads/trunk
Commit: 7c3bcc9e88450323a60ae3e42ccec3e5bb57555f
Parents: 61cebe7
Author: pallavkul <[email protected]>
Authored: Thu Feb 9 13:06:04 2017 +0530
Committer: pallavkul <[email protected]>
Committed: Thu Feb 9 13:08:56 2017 +0530

----------------------------------------------------------------------
 contrib/views/hive20/src/main/resources/ui/app/styles/app.scss   | 4 ++++
 .../src/main/resources/ui/app/templates/components/job-item.hbs  | 2 +-
 .../src/main/resources/ui/app/templates/components/list-item.hbs | 2 +-
 .../hive20/src/main/resources/ui/app/templates/savedqueries.hbs  | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7c3bcc9e/contrib/views/hive20/src/main/resources/ui/app/styles/app.scss
----------------------------------------------------------------------
diff --git a/contrib/views/hive20/src/main/resources/ui/app/styles/app.scss 
b/contrib/views/hive20/src/main/resources/ui/app/styles/app.scss
index 968d3b3..4f73ef8 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/styles/app.scss
+++ b/contrib/views/hive20/src/main/resources/ui/app/styles/app.scss
@@ -967,3 +967,7 @@ ul.dropdown-menu {
   width: 100%;
   overflow: auto;
 }
+
+.break-word{
+  word-break: break-all;
+}

http://git-wip-us.apache.org/repos/asf/ambari/blob/7c3bcc9e/contrib/views/hive20/src/main/resources/ui/app/templates/components/job-item.hbs
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive20/src/main/resources/ui/app/templates/components/job-item.hbs
 
b/contrib/views/hive20/src/main/resources/ui/app/templates/components/job-item.hbs
index 291def6..16caad0 100644
--- 
a/contrib/views/hive20/src/main/resources/ui/app/templates/components/job-item.hbs
+++ 
b/contrib/views/hive20/src/main/resources/ui/app/templates/components/job-item.hbs
@@ -18,7 +18,7 @@
 
 <tr>
   <td>{{job.id}}</td>
-  <td>{{job.title}}</td>
+  <td class="break-word">{{job.title}}</td>
   <td>{{job.status}}</td>
   <td>{{moment-from-now job.dateSubmitted}}</td>
   <td>{{job.duration}}</td>

http://git-wip-us.apache.org/repos/asf/ambari/blob/7c3bcc9e/contrib/views/hive20/src/main/resources/ui/app/templates/components/list-item.hbs
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive20/src/main/resources/ui/app/templates/components/list-item.hbs
 
b/contrib/views/hive20/src/main/resources/ui/app/templates/components/list-item.hbs
index 4fbd86b..75b8700 100644
--- 
a/contrib/views/hive20/src/main/resources/ui/app/templates/components/list-item.hbs
+++ 
b/contrib/views/hive20/src/main/resources/ui/app/templates/components/list-item.hbs
@@ -19,4 +19,4 @@
 {{#if item.icon}}
   {{fa-icon item.icon size="lg"}}&nbsp;&nbsp;
 {{/if}}
-{{item.name}}
+<span class="break-word">{{item.name}}</span>

http://git-wip-us.apache.org/repos/asf/ambari/blob/7c3bcc9e/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
----------------------------------------------------------------------
diff --git 
a/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs 
b/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
index 0ab6cfd..287fc34 100644
--- a/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
+++ b/contrib/views/hive20/src/main/resources/ui/app/templates/savedqueries.hbs
@@ -32,7 +32,7 @@
       {{#each model.savedQueries as |savedQuery| }}
         <tr>
           <td>{{savedQuery.shortQuery}}</td>
-          <td>{{savedQuery.title}}</td>
+          <td class="break-word">{{savedQuery.title}}</td>
           <td>{{savedQuery.dataBase}}</td>
           <td>{{savedQuery.owner}}</td>
           <td>

Reply via email to