Added a scrollbar to the network and bluetooth menu. (#593)
* Added a scrollbar to the network and bluetooth menu. * Update themes * Adjust height of network menu scroller.
This commit is contained in:
@@ -33,9 +33,11 @@ export const BluetoothDevices = (): JSX.Element => {
|
||||
deviceListBinding.drop();
|
||||
}}
|
||||
>
|
||||
<box className={'menu-content'} vertical>
|
||||
{deviceListBinding()}
|
||||
</box>
|
||||
<scrollable className={'menu-scroller bluetooth'}>
|
||||
<box className={'menu-content'} vertical>
|
||||
{deviceListBinding()}
|
||||
</box>
|
||||
</scrollable>
|
||||
</box>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -15,33 +15,35 @@ export const WirelessAPs = (): JSX.Element => {
|
||||
if (filteredWAPs.length <= 0 && staging.get() === undefined) {
|
||||
return (
|
||||
<label
|
||||
className="waps-not-found dim"
|
||||
className={'waps-not-found dim'}
|
||||
expand
|
||||
halign={Gtk.Align.CENTER}
|
||||
valign={Gtk.Align.CENTER}
|
||||
label="No Wi-Fi Networks Found"
|
||||
label={'No Wi-Fi Networks Found'}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<box className="available-waps-list" vertical>
|
||||
{filteredWAPs.map((ap: AstalNetwork.AccessPoint) => {
|
||||
return (
|
||||
<box className="network-element-item">
|
||||
<AccessPoint connecting={connecting} accessPoint={ap} />
|
||||
<Controls connecting={connecting} accessPoint={ap} />
|
||||
</box>
|
||||
);
|
||||
})}
|
||||
</box>
|
||||
<scrollable className={'menu-scroller wap'}>
|
||||
<box className={'available-waps-list'} vertical>
|
||||
{filteredWAPs.map((ap: AstalNetwork.AccessPoint) => {
|
||||
return (
|
||||
<box className={'network-element-item'}>
|
||||
<AccessPoint connecting={connecting} accessPoint={ap} />
|
||||
<Controls connecting={connecting} accessPoint={ap} />
|
||||
</box>
|
||||
);
|
||||
})}
|
||||
</box>
|
||||
</scrollable>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
return (
|
||||
<box
|
||||
className="available-waps"
|
||||
className={'available-waps'}
|
||||
vertical
|
||||
onDestroy={() => {
|
||||
wapBinding.drop();
|
||||
|
||||
Reference in New Issue
Block a user