Skip to content

Commit

Permalink
size and location of the refresh btn changed, and added maximum and m…
Browse files Browse the repository at this point in the history
…inimum width for the comment server
  • Loading branch information
ByronEricPerez committed Sep 2, 2022
1 parent 5baa12e commit b6e71a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ui/component/commentsList/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,9 @@ const CommentActionButtons = (actionButtonsProps: ActionButtonsProps) => {
<SortButton {...sortButtonProps} label={__('New')} icon={ICONS.NEW} sortOption={SORT_BY.NEWEST} />
</span>
)}

<Button button="alt" icon={ICONS.REFRESH} title={__('Refresh')} onClick={() => setPage(0)} />
<div className="button_refresh">
<Button button="alt" icon={ICONS.REFRESH} title={__('Refresh')} onClick={() => setPage(0)} />
</div>
{allServers.length >= 2 && (
<div className="button_selectedServer">
<FormField
Expand Down
11 changes: 10 additions & 1 deletion ui/scss/component/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
align-self: flex-start;
.button--alt {
padding-top: 2px;
padding: 0 var(--spacing-s);
}
.comment__sort {
.button--alt {
Expand Down Expand Up @@ -660,6 +661,14 @@

.button_selectedServer {
display: inline;
width: var(--floating-viewer-height);
float: right;
min-width: var(--side-nav-width--micro);
max-width: var(--side-nav-width);
margin-left: -10px;
}

.button_refresh {
display: inline;
float: right;
margin-left: var(--spacing-s);
}

0 comments on commit b6e71a8

Please sign in to comment.