Latest Updates

Documenting code, one commit at a time.

HTML UI 10 posts
×

Eliminating CORS Issues with Data-URL Image Conversion

Introduction

In web applications, handling images from different origins can be a recurring challenge due to Cross-Origin Resource Sharing (CORS) restrictions. These restrictions often lead to unexpected failures, especially when trying to manipulate images using technologies like html2canvas to capture screenshots with overlays.

The Problem

When capturing web page screenshots using

Read more
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

Clarifying Costs in Brenia's Consumption Dashboard

When building dashboards for complex applications like Brenia, it's crucial to ensure that labels are crystal clear, especially when dealing with financial data. Ambiguity can lead to misinterpretations and incorrect assumptions, impacting user trust and decision-making.

The Problem: Ambiguous Cost Labels

In Brenia's consumption dashboard, the initial labels for cost columns, specifically

Read more
PHP CSS UI

Enhancing UI Stability: Preventing Overlapping Content in Breniapp

Introduction

In the development of Breniapp, a key focus is ensuring a seamless and visually consistent user experience. One common issue that can disrupt this experience is overlapping UI elements, particularly when floating buttons obscure page content. Addressing this requires careful attention to spacing and layout.

The Problem

Floating action buttons (FABs) are a popular UI element

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