From 131bf2d3b4c80d6b960663e33c47b3f1a1866af8 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Thu, 29 Jun 2017 15:22:24 +0530 Subject: [PATCH] Fix for long length device name --- .../cdmf.unit.device.view/public/css/main.css | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/css/main.css b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/css/main.css index 5bd45c1247c..b90494ef121 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/css/main.css +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.view/public/css/main.css @@ -106,13 +106,18 @@ font-size: 9em; } .device-info h1, .device-info h4:not(:last-child){ - margin: 0px 0px 9px 0px; - position: relative; + margin: 0px 0px 9px 0px; + position: relative; + width: 100%; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } .device-id a{ - font-size: 0.4em; - position: absolute; - margin: 0px 5px; + font-size: 0.4em; + position: absolute; + margin: 0px 5px; + right: -5px; } .device-info h4:last-child{ margin: 0px;