ammachado commented on PR #1740:
URL: https://github.com/apache/camel-website/pull/1740#issuecomment-5643089110

   > The tables are not rendered equally across some components, the 
opentelemetry shows a background to the property name.
   
   @claudio4j two updates on the tables.
   
   **1. The property-name background on OpenTelemetry.** I said earlier that 
this needed a fix upstream in `apache/camel`. It didn't: 88f908c7 handles it on 
the site. When the first column writes the property name as `code`, as the 
OpenTelemetry page does, it now renders as bold text like the generated option 
tables, without the chip background.
   
   ![OpenTelemetry configuration table on the preview: property names in bold, 
no chip 
background](https://github.com/user-attachments/assets/eef09fe5-dfa9-4f0c-92d0-4f88d5421bec)
   
   **2. Squeezed Description columns.** While checking that, I found a second 
problem on the generated option tables at laptop widths. On the ActiveMQ 6 page 
at a 1440px window, Description was squeezed to about 116px. Values with no 
place to break a line, such as `AUTO_ACKNOWLEDGE` in Default and 
`MessageListenerContainerFactory` in Type, forced those columns wide, and 
together with the Name column they no longer fit. b5fd5112 (refined in 92dd2b8b 
and 25145693) adds soft break points to long values in every column: after 
dots, slashes and underscores, and at camel-case humps. Inside Description text 
only tokens of 24 characters or more get break points, so a short identifier is 
not split at its humps. (The browser's automatic hyphenation, `hyphens: auto` 
in `doc.css` on main as well, can still hyphenate one, as with `excludePattern` 
in the OpenTelemetry shot above. That is unchanged by this PR.) On ActiveMQ 6, 
Description is now 197 to 303px wide. I checked 116 option tables on 11 p
 ages at 1440px (ActiveMQ 6, Kafka, JMS, AWS S3, File, HTTP, Salesforce, SQL, 
OpenTelemetry, and Main in both 4.22.x and next), and none overflow.
   
   Before, ActiveMQ 6 Component Options at 1440px:
   
   ![ActiveMQ 6 Component Options before the fix: Description squeezed to a few 
words per 
line](https://github.com/user-attachments/assets/659a2b86-f466-44a6-b312-2a7097c42707)
   
   After:
   
   ![ActiveMQ 6 Component Options after the fix: Description reads as a normal 
column, ConnectionFactory wraps at the 
hump](https://github.com/user-attachments/assets/f6b2d54c-72e2-43f7-ba74-76f3318d999c)
   
   _Claude Code on behalf of Adriano Machado (@ammachado)_
   
   _This was generated by an AI agent and may contain inaccuracies. Please 
verify before relying on it._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to