feat(widget): centraliza botão de ações com tag e título quando tag-position é top#2832
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
feat(widget): centraliza botão de ações com tag e título quando tag-position é top#2832devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
2eb8488 to
66770c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Quando o
po-widgetpossuip-tagep-tag-position="top", o botão de ações (menu popup) agora fica centralizado verticalmente nopo-widget-header, alinhado tanto com a tag quanto com o título.O que foi feito
po-widget-header--tag-top-actionsao elemento header quandotagLabel,tagPosition() === 'top'eactions?.lengthestão presentes simultaneamentepo-ui/po-style) para reorganizar o layout via CSS Grid +display: contents, posicionando o botão de ações na coluna direita, centralizado verticalmente entre a tag (linha 1) e o título (linha 2)Dependência
Esta PR depende da PR correspondente no repositório po-ui/po-style (branch
po-widget/devin) que contém as regras CSS necessárias para o layout grid.Review & Testing Checklist for Human
p-tag,p-tag-position="top"e ações configuradasp-tag-position="right"ep-tag-position="bottom"(sem regressão)p-tagou sem ações, o header mantém o comportamento anteriorNotes
A alteração no template é mínima — apenas adição de uma classe CSS condicional. Toda a lógica de layout está no CSS (repositório po-style).
Link to Devin session: https://totvs.devinenterprise.com/sessions/3abb93ffb4e3402dbc926789948f159b