mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Make "Unfollow" button look dangerous
Also add ellipsis
This commit is contained in:
parent
55ad4be580
commit
b96f263f69
2 changed files with 5 additions and 2 deletions
|
@ -184,7 +184,7 @@ function Account({ account }) {
|
|||
{relationshipUIState !== 'loading' && relationship && (
|
||||
<button
|
||||
type="button"
|
||||
class={following ? 'light' : ''}
|
||||
class={`${following ? 'light danger' : ''}`}
|
||||
disabled={relationshipUIState === 'loading'}
|
||||
onClick={() => {
|
||||
setRelationshipUIState('loading');
|
||||
|
@ -210,7 +210,7 @@ function Account({ account }) {
|
|||
})();
|
||||
}}
|
||||
>
|
||||
{following ? 'Unfollow' : 'Follow'}
|
||||
{following ? 'Unfollow…' : 'Follow'}
|
||||
</button>
|
||||
)}
|
||||
</p>
|
||||
|
|
|
@ -153,6 +153,9 @@ button,
|
|||
color: var(--text-color);
|
||||
border: 1px solid var(--outline-color);
|
||||
}
|
||||
:is(button, .button).light.danger:not(:disabled, .disabled) {
|
||||
color: var(--red-color);
|
||||
}
|
||||
|
||||
:is(button, .button).block {
|
||||
display: block;
|
||||
|
|
Loading…
Reference in a new issue