mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-13 14:45:12 +01:00
Change styling to always have scrollbar on search results
This commit is contained in:
parent
d4b65193c7
commit
5dcc406abe
@ -125,10 +125,12 @@ class SearchResults extends ImmutablePureComponent {
|
|||||||
<FormattedMessage id='search_results.total' defaultMessage='{count, number} {count, plural, one {result} other {results}}' values={{ count }} />
|
<FormattedMessage id='search_results.total' defaultMessage='{count, number} {count, plural, one {result} other {results}}' values={{ count }} />
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<div className='search-results__contents'>
|
||||||
{accounts}
|
{accounts}
|
||||||
{statuses}
|
{statuses}
|
||||||
{hashtags}
|
{hashtags}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -115,8 +115,10 @@
|
|||||||
|
|
||||||
.drawer--results {
|
.drawer--results {
|
||||||
background: $ui-base-color;
|
background: $ui-base-color;
|
||||||
overflow-x: hidden;
|
overflow: hidden;
|
||||||
overflow-y: auto;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
& > header {
|
& > header {
|
||||||
color: $dark-text-color;
|
color: $dark-text-color;
|
||||||
@ -125,6 +127,7 @@
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -132,6 +135,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& > .search-results__contents {
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: scroll;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
& > section {
|
& > section {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
|
||||||
@ -170,6 +178,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer__pager {
|
.drawer__pager {
|
||||||
|
Loading…
Reference in New Issue
Block a user