sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.57k stars 89 forks source link

Bug with "fixed_top_menu" #588

Open DSMejantel opened 3 weeks ago

DSMejantel commented 3 weeks ago

Introduction

When "fixed_top_menu":"TRUE" is actived, the page is not correctly done since sqlpage 0.27.

To Reproduce

--Menu
SELECT 'dynamic' AS component, 
CASE WHEN $group_id=1
THEN sqlpage.read_file_as_text('index.json')
ELSE sqlpage.read_file_as_text('menu.json')
            END    AS properties; 

select 
    'button' as component,
    'sm'     as size,
    --'pill'   as shape,
    'center' as justify;
select 
    'AESH' as title,
    'etab_aesh.sql?id=' || $id as link,

Actual behavior

Screenshots

probleme_menu

lovasoa commented 3 weeks ago

Hello @DSMejantel and welcome back :smiley: ! This should be fixed in v0.29 (not released yet). Can you test it ? It's available on docker under lovasoa/sqlpage:main. If you don't have docker, i'm joining a linux binary.

lovasoa commented 3 weeks ago

sqlpage-v0.29-preview.zip