mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Display message in selector instead of disabling browser action
This commit is contained in:
@@ -152,13 +152,17 @@ class PopupApp extends Component<{}, PopupAppState> {
|
||||
</div>
|
||||
</div>
|
||||
<ul className="receivers">
|
||||
{ this.state.receivers && this.state.receivers.map(
|
||||
(receiver, i) => (
|
||||
<ReceiverEntry receiver={ receiver }
|
||||
onCast={ this.onCast }
|
||||
isLoading={ this.state.isLoading }
|
||||
canCast={ canCast }
|
||||
key={ i }/> ))}
|
||||
{ this.state.receivers && this.state.receivers.length
|
||||
? this.state.receivers.map((receiver, i) => (
|
||||
<ReceiverEntry receiver={ receiver }
|
||||
onCast={ this.onCast }
|
||||
isLoading={ this.state.isLoading }
|
||||
canCast={ canCast }
|
||||
key={ i } /> ))
|
||||
: (
|
||||
<div className="receivers__not-found">
|
||||
{ _("popupNoReceiversFound") }
|
||||
</div> )}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -33,6 +33,14 @@ body {
|
||||
padding: initial;
|
||||
}
|
||||
|
||||
.receivers__not-found {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
justify-content: center;
|
||||
padding: 0.75em 1em;
|
||||
}
|
||||
|
||||
.receiver {
|
||||
column-gap: 0.75em;
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user