From 407e926abe45aad38184665ea4b544d623b791a6 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Mon, 21 Dec 2015 15:14:21 +0900 Subject: [PATCH] Fix styles in file editing form in the repository viewer --- .../gitbucket/core/repo/editor.scala.html | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/main/twirl/gitbucket/core/repo/editor.scala.html b/src/main/twirl/gitbucket/core/repo/editor.scala.html index 0bbc1f00f..8639ae8d1 100644 --- a/src/main/twirl/gitbucket/core/repo/editor.scala.html +++ b/src/main/twirl/gitbucket/core/repo/editor.scala.html @@ -23,7 +23,7 @@
- @@ -44,21 +44,21 @@
@avatar(loginAccount.get.userName, 48)
-
-
+
+
Commit changes
-
- +
+
@if(fileName.isEmpty){ - Cancel + Cancel } else { - Cancel + Cancel } - + @@ -114,11 +114,15 @@ $(function(){ $('#btn-code').click(function(){ $('#editor').show(); $('#preview').hide(); + $('#btn-code').appendClass('active'); + $('#btn-preview').removeClass('active'); }); $('#btn-preview').click(function(){ $('#editor').hide(); - $('#preview').show() + $('#preview').show(); + $('#btn-code').removeClass('active'); + $('#btn-preview').appendClass('active'); @if(fileName.map(isRenderable _).getOrElse(false)) { // update preview