From 4d2ae71bf2bb6d5ac4179bcaca87a7ec13bb9d5f Mon Sep 17 00:00:00 2001
From: Sergei Shuykov <n1nj4p0w3r@gmail.com>
Date: Mon, 12 Jan 2015 17:08:15 +0300
Subject: [PATCH] fix_#11348 Safari rename button positioning

---
 apps/files/css/files.css     | 8 ++++----
 apps/files/js/fileactions.js | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index 5b947fa326..74227216bf 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -305,7 +305,6 @@ table td.filename .nametext .innernametext {
 	text-overflow: ellipsis;
 	overflow: hidden;
 	position: relative;
-	display: inline-block;
 }
 
 @media only screen and (min-width: 1366px) {
@@ -518,9 +517,9 @@ a.action>img {
 
 #fileList a.action[data-action="Rename"] {
 	padding: 16px 14px 17px !important;
-	position: relative;
-	top: -21px;
 }
+
+.ie8 #fileList a.action img,
 #fileList tr:hover a.action,
 #fileList a.action.permanent,
 #fileList tr:focus a.action,
@@ -531,6 +530,7 @@ a.action>img {
 	opacity: .5;
 	display:inline;
 }
+.ie8 #fileList a.action:hover img,
 #fileList tr:hover a.action:hover,
 #fileList tr:focus a.action:focus,
 #fileList .name:focus a.action:focus {
@@ -625,4 +625,4 @@ table.dragshadow td.size {
 	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
 	filter: alpha(opacity=50);
 	opacity: .5;
-}
\ No newline at end of file
+}
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 9412e510a5..b335f1f643 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -247,8 +247,9 @@
 				html += '<img class="svg" alt="" src="' + img + '" />';
 			}
 			if (actionSpec.displayName) {
-				html += '<span> ' + actionSpec.displayName + '</span></a>';
+				html += '<span> ' + actionSpec.displayName + '</span>';
 			}
+			html += '</a>';
 
 			return $(html);
 		},
-- 
GitLab