Skip to content

PhoenixKit 1.7.170: Audio playback in the media viewer

PhoenixKit 1.7.170 lets the media viewer play audio. Opening an audio file shows a waveform with a play and pause button, and a click on the waveform jumps to that point.

The waveform library loads from a CDN only when an audio file is opened. If it cannot load, the browser’s own audio controls appear instead. A file counts as audio by its type or by its extension, so MP3 files stored with a generic type are recognised too. In the grid, list and stack views audio files get a music note icon and an audio label.

Also fixed: the display menu now reads Stacks in stack view instead of Grid, a long notification list scrolls instead of breaking into columns, the users table’s action menu stays at the right edge, and long emails in the account switcher are cut short. Deep folder names in the folder tree are shown in full, and the tree scrolls sideways.

Full release notes: PhoenixKit 1.7.170

1.7.170 · 29 June 2026

Added

  • Audio playback in the media viewer. Opening an audio file (in the in-place modal or /admin/media/:uuid) now renders an interactive WaveSurfer waveform with a play/pause button and click-to-seek instead of a document placeholder. WaveSurfer is lazy-loaded via a dynamic CDN import only when audio is opened (no npm/hex dependency, no cost on other pages); the hidden native <audio> is the playback source and the fallback (native controls) if the library can’t load. Audio is detected by mime, file_type, or extension, so mp3s stored with a generic application/octet-stream mime are still recognised. Grid, list, and stack views show a music-note icon and an “AUDIO” label. (#611)

Changed

  • Folder sidebar handles deep names. Deeply nested folders keep their full names and the tree scrolls horizontally instead of truncating to a few characters; the root→current active path is drawn bolder (4px, was 2px) and centred on the axis so the branch you’re on stands out. (#611)

Fixed

  • Media browser display dropdown label. The display dropdown now reads “Stacks” in Stacks mode (was stuck on “Grid”), driven by a lookup over the view options instead of a two-way grid/list assumption. (#611)
  • Notifications dropdown overflow. A tall notifications list now scrolls vertically instead of wrapping into extra columns — daisyUI menu’s flex-wrap: wrap is replaced with a plain flex flex-col flex-nowrap list. (#611)
  • Users table actions menu. The … actions menu is pinned to the far-right edge so it no longer drifts into a wide auto-width cell when columns are hidden. (#611)
  • Account switcher overflow. Long emails are truncated (with a hover tooltip) and the role badge is pinned, fixing horizontal overflow in the user dropdown. (#611)

PhoenixKit 1.7.170. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.