gpt-engineer
gpt-engineer copied to clipboard
fix: display logo image instead of initials in custom template (#222)
Summary
This PR fixes issue #222 — in custom presentation templates, the logo was previously displaying a fallback "i" even after replacing the logo URL.
Now, dynamicSlideLayout.tsx renders the logo as an element when a valid
image_url is provided, and falls back to initials only if no image exists.
Changes
- Added
dynamicSlideLayout.tsxunderservers/nextjs/presentation-templates/custom/ - Updated
README.mdwith instructions for updating logos in custom templates - Ensured proper rendering of left and right brand logos in the header section
- Maintained decorative waves at the bottom
Testing
- Verified locally using
npm run dev - Confirmed that providing a valid
image_urlrenders the logo image instead of "i" - Confirmed fallback to initials still works when no image URL is provided
Notes
This update allows template creators to easily replace placeholder logos with custom images and ensures consistent display across templates.
[!IMPORTANT] Fixes logo rendering in custom templates and adds installation scripts to resolve
pyperclipcompatibility issues.
- Behavior:
dynamicSlideLayout.tsxnow renders logo as<img>whenimage_urlis valid, falls back to initials if not.- Files Added:
- Added
dynamicSlideLayout.tsxunderservers/nextjs/presentation-templates/custom/.- Documentation:
- Updated
README.mdwith logo update instructions and troubleshooting section for installation errors.- Scripts:
- Added
install_fixed.ps1andinstall_fixed.shto fixpyperclipinstallation issue by setting compatiblesetuptoolsandpyperclipversions.This description was created by
for 86d820cf59185ef8e944839cfceeef51f5ad7424. You can customize this summary. It will automatically update as commits are pushed.