mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Make plugins scrollable
This commit is contained in:
@@ -96,11 +96,7 @@ pub async fn search_plugins<R: Runtime>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn build_url(path: &str) -> Url {
|
fn build_url(path: &str) -> Url {
|
||||||
let base_url = if is_dev() {
|
let base_url = "https://api.yaak.app/api/v1/plugins";
|
||||||
"http://localhost:9444/api/v1/plugins"
|
|
||||||
} else {
|
|
||||||
"https://api.yaak.app/api/v1/plugins"
|
|
||||||
};
|
|
||||||
Url::from_str(&format!("{base_url}{path}")).unwrap()
|
Url::from_str(&format!("{base_url}{path}")).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export function SettingsPlugins() {
|
|||||||
label="Plugins"
|
label="Plugins"
|
||||||
onChangeValue={setTab}
|
onChangeValue={setTab}
|
||||||
addBorders
|
addBorders
|
||||||
tabListClassName="!-ml-3"
|
|
||||||
tabs={[
|
tabs={[
|
||||||
{ label: 'Discover', value: 'search' },
|
{ label: 'Discover', value: 'search' },
|
||||||
{
|
{
|
||||||
@@ -243,7 +242,7 @@ function PluginSearch() {
|
|||||||
defaultValue={query}
|
defaultValue={query}
|
||||||
/>
|
/>
|
||||||
</HStack>
|
</HStack>
|
||||||
<div className="w-full h-full">
|
<div className="w-full h-full overflow-y-auto">
|
||||||
{results.data == null ? (
|
{results.data == null ? (
|
||||||
<EmptyStateText>
|
<EmptyStateText>
|
||||||
<LoadingIcon size="xl" className="text-text-subtlest" />
|
<LoadingIcon size="xl" className="text-text-subtlest" />
|
||||||
|
|||||||
Reference in New Issue
Block a user