Make plugins scrollable

This commit is contained in:
Gregory Schier
2025-10-19 08:21:36 -07:00
parent ba6163b6d8
commit 07b90c6ae3
2 changed files with 2 additions and 7 deletions

View File

@@ -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()
} }

View File

@@ -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" />