kopia lustrzana https://github.com/friendica/friendica
Add text to main compose button, adjust mention button accordingly
rodzic
942fc6420e
commit
3478005ea5
|
|
@ -1438,9 +1438,11 @@ section ul.tabs {
|
|||
section #jotOpen {
|
||||
display: none;
|
||||
}
|
||||
#jotOpen {
|
||||
margin-top: 3px;
|
||||
float: right;
|
||||
#jotOpen, #mention-link {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
padding-bottom: 7px;
|
||||
padding-top: 7px;
|
||||
}
|
||||
#jot-content {
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -88,8 +88,7 @@ $(document).ready(function () {
|
|||
let $mentionButton = $("#mention-link-button");
|
||||
if ($mentionButton.length) {
|
||||
$mentionButton.appendTo("#topbar-second > .container > #navbar-button").addClass("pull-right");
|
||||
$("#mention-link").addClass("btn-sm ");
|
||||
$("#mention-link > span i").addClass("fa-2x");
|
||||
$("#mention-link > span i").addClass("fa-lg");
|
||||
if ($mentionButton.hasClass("modal-open")) {
|
||||
$mentionButton.on("click", function (e) {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,10 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*}}
|
||||
{{* The button to open the jot - in This theme we move the button with js to the second nav bar *}}
|
||||
<a class="btn btn-sm btn-primary pull-right{{if !$always_open_compose}} modal-open{{/if}}" id="jotOpen" href="compose/{{$posttype}}{{if $content}}?body={{$content}}{{/if}}" aria-label="{{$new_post}}" title="{{$new_post}}"><i class="fa fa-pencil-square-o fa-2x"></i></a>
|
||||
<a class="btn btn-primary pull-right{{if !$always_open_compose}} modal-open{{/if}}" id="jotOpen" href="compose/{{$posttype}}{{if $content}}?body={{$content}}{{/if}}" aria-label="{{$new_post}}" title="{{$new_post}}">
|
||||
<i class="fa fa-lg fa-pencil-square-o"></i>
|
||||
<span>{{$new_post}}</span>
|
||||
</a>
|
||||
|
||||
<div id="jot-content">
|
||||
<div id="jot-sections">
|
||||
|
|
@ -191,5 +194,5 @@ can load different content into the jot modal (e.g. the item edit jot)
|
|||
</script>
|
||||
|
||||
<script>
|
||||
dzFactory.setupDropzone('#jot-text-wrap', 'profile-jot-text');
|
||||
dzFactory.setupDropzone('#jot-text-wrap', 'profile-jot-text');
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
{{if $profile.addr}}
|
||||
<div id="mention-link-button">
|
||||
<button type="button" id="mention-link" class="btn btn-labeled btn-primary" onclick="openWallMessage('{{$mention_url}}')">
|
||||
<span class=""><i class="fa fa-pencil-square-o"></i></span>
|
||||
<span class=""><i class="fa fa-pencil-square-o"></i></span>
|
||||
<span class="">{{$mention_label}}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
{{if $mention_link}}
|
||||
<div id="mention-link-button">
|
||||
<button type="button" id="mention-link" class="btn btn-labeled btn-primary{{if !$always_open_compose}} modal-open{{/if}}" onclick="openWallMessage('{{$mention_link}}')" title="{{$mention}}" aria-label="{{$mention}}">
|
||||
<span class=""><i class="fa fa-pencil-square-o"></i></span>
|
||||
<span class=""><i class="fa fa-pencil-square-o"></i></span>
|
||||
<span class="">{{$mention}}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue