Latest Updates

Documenting code, one commit at a time.

PHP HTML

Improving Canvas Image Handling in Breniapp/brenia

Introduction

This post details a fix implemented in Breniapp/brenia to improve how canvas images are handled, specifically addressing issues with html2canvas when capturing overlays. The core problem was that the crossorigin="anonymous" attribute on canvas images was causing html2canvas to fail in certain scenarios.

The Problem: CORS and html2canvas

The crossorigin="anonymous"

Read more

Streamlining Media Handling in Breniapp

The Breniapp project focuses on streamlining internal business processes. Recently, we tackled an issue with how media assets were being handled, specifically in the content library.

The Problem

The asset() helper function was generating incorrect URLs for files stored in the public disk, leading to broken links and display issues.

Read more
PHP HTML CSS

Layout Broken: A Tale of an Unclosed Div

Ever had a small HTML error cause a cascade of layout issues? This is the story of how an unclosed div tag in the Breniapp/brenia project led to a broken layout and a late-night fix.

The Problem

The issue manifested as content being rendered underneath the sidebar, with no overflow, effectively breaking the entire Filament layout. The culprit? A conditional div tag that wasn't properly

Read more

Improving Image Downloads in Breniapp

Introduction

In Breniapp, we recently tackled an issue where downloaded images were not reflecting the complete visual output displayed on screen. Specifically, text and logo overlays, which were rendered using HTML and CSS, were missing from the downloaded image, resulting in users receiving only the base image.

The Problem

The original download implementation was simply fetching the

Read more

Enhancements to Carousel Functionality in Breniapp

The Breniapp project focuses on providing innovative solutions. Recent development efforts have centered on improving the carousel feature, addressing formatting issues, data capture, and download capabilities.

Carousel Enhancements

The latest updates to the carousel functionality in Breniapp include several key improvements:

Dynamic Aspect Ratio

The carousel now dynamically adjusts

Read more

Improving HTML Canvas Capture with Absolute Positioning in Breniapp

Introduction

In the Breniapp project, we encountered an issue where html2canvas was misrendering flexbox alignments, specifically items-center and items-end. This resulted in text overlays appearing shifted during the capture process. To address this, we implemented a strategy to temporarily convert flex wrappers to absolute-positioned elements before the capture and then restore them

Read more
PHP CSS HTML

Improving UI Consistency with Flexbox in Breniapp

In the Breniapp project, maintaining a consistent user interface across different screen sizes and devices is crucial. Recent work focused on leveraging Flexbox to achieve this, specifically addressing the positioning of a timestamp within a library card component.

The Challenge

The original layout didn't consistently pin the timestamp to the bottom of the library card, especially when

Read more