Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

fix(admin): align pedidos title styling#195

Merged
marpisco merged 2 commits into
mainfrom
codex/fix-pedidos-page-header-layout
Jul 5, 2026
Merged

fix(admin): align pedidos title styling#195
marpisco merged 2 commits into
mainfrom
codex/fix-pedidos-page-header-layout

Conversation

@marpisco

@marpisco marpisco commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Corrigir o alinhamento e espaçamento do cabeçalho da página de pedidos para que o título fique à esquerda, alinhado horizontalmente com a descrição, sem deslocar o conteúdo adjacente e usando o gradiente de cores do ClassLink.

Description

  • Em admin/pedidos.php foi adicionada a classe CSS .classlink-page-title com line-height, margem reduzida e background: var(--gradient-primary) e o bloco anterior com span inline foi substituído por <h2 class="classlink-page-title">Gestão de Pedidos</h2> para eliminar espaçamentos extras.

Testing

  • Executado php -l admin/pedidos.php para verificação de sintaxe e não foram encontrados erros.

Codex Task

Copilot AI review requested due to automatic review settings July 5, 2026 03:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

📝 Manual Update Required? It looks like you've modified core logic. Please check if the user manual needs a refresh! @marpisco

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ab7bb3e518

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread admin/pedidos.php Outdated
Comment on lines +142 to +145
background: var(--gradient-primary);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add a fallback gradient for the transparent title

On admin pages this stylesheet is emitted after require 'index.php', and admin/index.php only loads Bootstrap plus theme-switcher.js, not assets/theme.css, so --gradient-primary is not defined in this context. When this background declaration is invalid, the following -webkit-text-fill-color: transparent still applies in Chromium/Safari, making the “Gestão de Pedidos” heading invisible instead of merely restyled. Add a fallback value here or load the theme variables for admin pages before using them.

Useful? React with 👍 / 👎.

@marpisco

marpisco commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

@codex Change this to fit the rest of the titles like the module, nevermind the original prompt that talked about the title colors (keep the prompt in mind as for fixing the GAP, that is still not fixed). Take the example of /admin/salas.php. Modify it to fit that font style (not centered, keep it justified to the left).

Also, currently it's just black text on a black background (I'm working in dark mode), keep in consideration that this must work between both device themes.

The gap is still there fyi. Not sure if it's a margin of some sort in some CSS sheet that's loaded.

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

  • Updated the pedidos admin page wrapper to use the same left-aligned 10% side-margin layout pattern as the other admin pages, removing the nested centered container/row header structure that was contributing extra spacing. admin/pedidos.phpL137-L151
  • Replaced the custom gradient h2 title with a standard h3 title so it matches the admin module title style and remains theme-readable in light and dark modes. admin/pedidos.phpL152-L154
  • Kept the date badge in the header while reducing the header-specific bottom spacing. admin/pedidos.phpL142-L159

Testing

  • git diff --check
  • php -l admin/pedidos.php

Committed changes on the current branch with commit 8ea0677 and created the follow-up PR.

View task →

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

📝 Manual Update Required? It looks like you've modified core logic. Please check if the user manual needs a refresh! @marpisco

marpisco added 2 commits July 5, 2026 03:08
Aligns the pedidos page title with its description by replacing the nested inline span with a simple title class.\n\nUses the existing ClassLink primary gradient and removes extra title spacing so the header layout stays aligned without shifting the description or page content.\n\nTested with php -l admin/pedidos.php.\n\nCo-authored-by: Codex <noreply@openai.com>
@marpisco marpisco force-pushed the codex/fix-pedidos-page-header-layout branch from b9f0367 to 55db9fb Compare July 5, 2026 03:08
Copilot AI review requested due to automatic review settings July 5, 2026 03:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

📝 Manual Update Required? It looks like you've modified core logic. Please check if the user manual needs a refresh! @marpisco

@marpisco

marpisco commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

LGTM.

@marpisco marpisco merged commit 6ce2aa4 into main Jul 5, 2026
6 checks passed
@marpisco marpisco deleted the codex/fix-pedidos-page-header-layout branch July 5, 2026 04:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants