fix: Add scrollable container to ToolSelectorModal for small screens
- Add max-h-[90vh] and flex-col to modal content container - Wrap tools grid in max-h-[50vh] overflow-y-auto container - Add overscroll-contain for smooth scroll behavior on mobile - Fixes issue where 21 PDF tools overflow viewport on small screens
This commit is contained in:
@@ -34,6 +34,13 @@ def download_file(task_id: str, filename: str):
|
||||
assert_api_task_access(actor, task_id)
|
||||
else:
|
||||
actor = resolve_web_actor()
|
||||
# Download gate: anonymous users must register before downloading
|
||||
if actor.actor_type == "anonymous":
|
||||
return (
|
||||
{"error": "signup_required",
|
||||
"message": "Create a free account to download your file."},
|
||||
401,
|
||||
)
|
||||
assert_web_task_access(actor, task_id)
|
||||
except PolicyError as exc:
|
||||
abort(exc.status_code, exc.message)
|
||||
|
||||
Reference in New Issue
Block a user