mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Show small hints of filter titles
This commit is contained in:
parent
422813be9c
commit
b8ec7d3c51
2 changed files with 29 additions and 3 deletions
|
@ -245,7 +245,6 @@
|
|||
}
|
||||
.status-filtered-badge {
|
||||
flex-shrink: 0;
|
||||
display: inline-block;
|
||||
color: var(--text-insignificant-color);
|
||||
/* background: var(--bg-faded-color); */
|
||||
/* border: var(--hairline-width) solid var(--bg-color); */
|
||||
|
@ -257,6 +256,15 @@
|
|||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
}
|
||||
.status-filtered-badge.badge-meta {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
top: calc((9px + 2px) / 2 * -1);
|
||||
min-width: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.status-filtered-badge.clickable:hover {
|
||||
cursor: pointer;
|
||||
|
@ -264,6 +272,23 @@
|
|||
border-color: var(--text-color);
|
||||
background: var(--bg-color);
|
||||
}
|
||||
.status-filtered-badge.badge-meta > span:first-child {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-filtered-badge.badge-meta > span + span {
|
||||
display: block;
|
||||
font-size: 9px;
|
||||
font-weight: normal;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: calc(100% + 2px);
|
||||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.status.large .content-container {
|
||||
margin-left: calc(-50px - 16px);
|
||||
|
|
|
@ -1735,14 +1735,15 @@ function FilteredStatus({ status, filterInfo, instance }) {
|
|||
>
|
||||
<article class="status filtered" tabindex="-1">
|
||||
<b
|
||||
class="status-filtered-badge clickable"
|
||||
class="status-filtered-badge clickable badge-meta"
|
||||
title={filterTitleStr}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
setShowPeek(true);
|
||||
}}
|
||||
>
|
||||
Filtered
|
||||
<span>Filtered</span>
|
||||
<span>{filterTitleStr}</span>
|
||||
</b>{' '}
|
||||
<Avatar url={avatarStatic || avatar} />
|
||||
<span class="status-filtered-info">
|
||||
|
|
Loading…
Reference in a new issue