diff --git a/amadeus/static/css/base/amadeus_responsive.css b/amadeus/static/css/base/amadeus_responsive.css index 322e3e6..096343b 100755 --- a/amadeus/static/css/base/amadeus_responsive.css +++ b/amadeus/static/css/base/amadeus_responsive.css @@ -100,6 +100,11 @@ padding: 5px 20px; font-size: 12px; } + + .btn-popover-mobile { + padding: 4px 15px; + font-size: 10px; + } /* End Buttons */ .subject-period { @@ -513,6 +518,10 @@ } @media(min-width: 769px) { + .btn-popover-mobile { + padding: 5px 20px; + font-size: 12px; + } #profile-menu{ float:right; diff --git a/amadeus/static/js/mural.js b/amadeus/static/js/mural.js index 8cdda61..3b59ec8 100644 --- a/amadeus/static/js/mural.js +++ b/amadeus/static/js/mural.js @@ -31,6 +31,9 @@ $(function () { function setUserDataPopover() { $('[data-toggle="popover"]').popover({ html: true, + placement: function () { + return window.innerWidth <= 768 ? 'bottom' : 'right'; + }, content: function () { return $(this).parent().find(".popover").html(); } diff --git a/mural/templates/mural/_view.html b/mural/templates/mural/_view.html index 44eb0f8..e7a5815 100644 --- a/mural/templates/mural/_view.html +++ b/mural/templates/mural/_view.html @@ -18,18 +18,18 @@
-
+
-
+
diff --git a/mural/templates/mural/_view_comment.html b/mural/templates/mural/_view_comment.html index db2dbe4..1ffdd45 100644 --- a/mural/templates/mural/_view_comment.html +++ b/mural/templates/mural/_view_comment.html @@ -19,18 +19,18 @@
-
+
- diff --git a/subjects/templates/subjects/view.html b/subjects/templates/subjects/view.html index f27e8ef..4da6c80 100755 --- a/subjects/templates/subjects/view.html +++ b/subjects/templates/subjects/view.html @@ -99,18 +99,18 @@
-
+
- @@ -148,6 +148,9 @@ $('[data-toggle="popover"]').popover({ html: true, + placement: function () { + return window.innerWidth <= 768 ? 'bottom' : 'left'; + }, content: function () { return $(this).parent().find(".popover").html(); } -- libgit2 0.21.2