Fix status hiding

FossilOrigin-Name: 5188091d528aaa5c7135139cb436779d2093ed793ea4d37d7d6d57c9c48de893
This commit is contained in:
nekobit 2022-06-18 04:22:52 +00:00
parent 9db1263ad5
commit a74c7d626b
3 changed files with 73 additions and 52 deletions

13
dist/treebird20.css vendored
View file

@ -592,8 +592,7 @@ svg.in-reply-to-icon
.notification-info
{
margin-top: 5px;
margin-bottom: 5px;
margin-top: 9px;
}
.notification-info img,
@ -602,6 +601,7 @@ svg.in-reply-to-icon
margin-left: 41px;
width: 24px;
height: 24px;
margin-right: 6px;
border-radius: 3px;
vertical-align: middle;
object-fit: cover;
@ -622,7 +622,7 @@ svg.in-reply-to-icon
/***************************
* Statuses *
**************************/
.status,
.status .status-table,
.notification-regular,
.scrobble
{
@ -632,7 +632,7 @@ svg.in-reply-to-icon
border-spacing: 0px;
}
.status-hide:checked + .status
.status-hide:checked + .status .status-table
{
padding: 5px 10px;
}
@ -699,7 +699,8 @@ svg.in-reply-to-icon
}
.status-hide:checked + .status .status-data,
.status-hide:checked + .status .pfp-td
.status-hide:checked + .status .pfp-td,
.status-hide:checked + .status .notification-info
{
display: none;
}
@ -719,7 +720,7 @@ svg.in-reply-to-icon
object-fit: cover;
}
.status tr
.status table tr
{
width: auto;
}

18
static/search_all.tmpl Normal file
View file

@ -0,0 +1,18 @@
<table class="tabs ui-table">
<tr>
<td>
<label
<a href="{{%s:prefix}}/search/statuses?q={{%s:query}}"><input class="tab-btn btn {{%s:statuses_active}}" type="button" value="{{%s:statuses}}"></a>
</td>
<td>
<a href="{{%s:prefix}}/search/accounts?q={{%s:query}}"><input class="tab-btn btn {{%s:accounts_active}}" type="button" value="{{%s:accounts}}"></a>
</td>
<td>
<a href="{{%s:prefix}}/search/hashtags?q={{%s:query}}"><input class="tab-btn btn {{%s:hashtags_active}}" type="button" value="{{%s:hashtags}}"></a>
</td>
</tr>
</table>
<div class="search-results">
{{%s:results}}
</div>

View file

@ -1,49 +1,51 @@
<input type="checkbox" class="status-hide" id="status-toggle-{{%s:status_id}}" {{ %s:thread_hidden }}>
<table id="{{%s:status_id}}" class="status ui-table">
<div class="status">
{{ %s : notif_info }}
<tr>
<td class="pfp-td {{%s:is_cat}} {{%s:is_bun}}">
<img src="{{%s:avatar}}">
</td>
<td class="status-info">
<div class="poster-stats">
<span class="username">{{%s:username}}</span>
<a class="instance-info" href="{{%s:prefix}}/@{{%s:acct}}">{{%s:acct}}</a>
<span class="alignend">
<div class="menu-container status-visibility">
{{%s:visibility}}
<div class="menu">
<ul>
<li>
<form action="{{%s:prefix}}/status/{{%s:status_id}}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unmute}}mute">
<input type="submit" class="btn-menu" value="{{%s:unmute_btn}}">
</form>
</li>
<li>
<form action="{{%s:prefix}}/status/{{%s:status_id}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unbookmark}}bookmark">
<input type="submit" class="btn-menu" value="{{%s:unbookmark_btn}}">
</form>
</li>
{{%s:pin_status}}
{{%s:delete_status}}
</ul>
<table id="{{%s:status_id}}" class="status-table ui-table">
<tr>
<td class="pfp-td {{%s:is_cat}} {{%s:is_bun}}">
<img src="{{%s:avatar}}">
</td>
<td class="status-info">
<div class="poster-stats">
<span class="username">{{%s:username}}</span>
<a class="instance-info" href="{{%s:prefix}}/@{{%s:acct}}">{{%s:acct}}</a>
<span class="alignend">
<div class="menu-container status-visibility">
{{%s:visibility}}
<div class="menu">
<ul>
<li>
<form action="{{%s:prefix}}/status/{{%s:status_id}}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unmute}}mute">
<input type="submit" class="btn-menu" value="{{%s:unmute_btn}}">
</form>
</li>
<li>
<form action="{{%s:prefix}}/status/{{%s:status_id}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unbookmark}}bookmark">
<input type="submit" class="btn-menu" value="{{%s:unbookmark_btn}}">
</form>
</li>
{{%s:pin_status}}
{{%s:delete_status}}
</ul>
</div>
</div>
</div>
<label for="status-toggle-{{%s:status_id}}" class="status-view"></label>
</span>
</div>
<div class="status-data">
{{%s:in_reply_to_str}}
<span class="status-content">
{{%s:status_content}}
</span>
{{%s:attachments}}
{{%s:interactions}}
{{%s:emoji_reactions}}
{{%s:interaction_btns}}
</div>
</td>
</tr>
</table>
<label for="status-toggle-{{%s:status_id}}" class="status-view"></label>
</span>
</div>
<div class="status-data">
{{%s:in_reply_to_str}}
<span class="status-content">
{{%s:status_content}}
</span>
{{%s:attachments}}
{{%s:interactions}}
{{%s:emoji_reactions}}
{{%s:interaction_btns}}
</div>
</td>
</tr>
</table>
</div>