<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TitleBar.Title component does not automatically center in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252427#M1051</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73851"&gt;@MaximilianoML&lt;/a&gt;, the issue is that the icon is taller than the level 3 heading. As I see it you have two options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the heading component and leave the content inside the &lt;CODE&gt;&amp;lt;TitleBar.Title&amp;gt;&lt;/CODE&gt; component. With this option the font size will be larger and cover the whole height of the title bar.&lt;/LI&gt;
&lt;LI&gt;If you must keep the smaller font size, you can add custom styles to the&amp;nbsp;&lt;CODE&gt;&amp;lt;TitleBar.Title&amp;gt;&lt;/CODE&gt; component. Something like this should work:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// App.css
.app-title {
    display: flex;
    align-items: center;
    height: 100%;
}

// App.tsx
import './App.css

&amp;lt;TitleBar.Title className="app-title"&amp;gt;
    &amp;lt;Heading level={5}&amp;gt;Cost and Trafic Control&amp;lt;/Heading&amp;gt;
&amp;lt;/TitleBar.Title&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 06:45:49 GMT</pubDate>
    <dc:creator>educampver</dc:creator>
    <dc:date>2024-08-05T06:45:49Z</dc:date>
    <item>
      <title>TitleBar.Title component does not automatically center</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252272#M1049</link>
      <description>&lt;P&gt;Hello, Dev Friends!&lt;/P&gt;&lt;P&gt;Today I was changing some titles in my Custom App and then I realized that my&amp;nbsp;&lt;A href="https://developer.dynatrace.com/design/preview/layouts/TitleBar/#use-cases" target="_self"&gt;TitleBar.Title&lt;/A&gt; component was no rendering with the right style, I'll attach 3 images to explain my point.&lt;/P&gt;&lt;P&gt;My component rendered:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximilianoML_0-1722519459224.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21579i7C4C1009517B2900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximilianoML_0-1722519459224.png" alt="MaximilianoML_0-1722519459224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My code snippet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximilianoML_1-1722519718626.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21580iF4F441D0916A0CD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximilianoML_1-1722519718626.png" alt="MaximilianoML_1-1722519718626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A Dynatrace example of how I want to look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaximilianoML_2-1722519794405.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21581i5D7C3F9647658868/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaximilianoML_2-1722519794405.png" alt="MaximilianoML_2-1722519794405.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:44:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252272#M1049</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2024-08-01T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBar.Title component does not automatically center</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252427#M1051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73851"&gt;@MaximilianoML&lt;/a&gt;, the issue is that the icon is taller than the level 3 heading. As I see it you have two options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Remove the heading component and leave the content inside the &lt;CODE&gt;&amp;lt;TitleBar.Title&amp;gt;&lt;/CODE&gt; component. With this option the font size will be larger and cover the whole height of the title bar.&lt;/LI&gt;
&lt;LI&gt;If you must keep the smaller font size, you can add custom styles to the&amp;nbsp;&lt;CODE&gt;&amp;lt;TitleBar.Title&amp;gt;&lt;/CODE&gt; component. Something like this should work:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// App.css
.app-title {
    display: flex;
    align-items: center;
    height: 100%;
}

// App.tsx
import './App.css

&amp;lt;TitleBar.Title className="app-title"&amp;gt;
    &amp;lt;Heading level={5}&amp;gt;Cost and Trafic Control&amp;lt;/Heading&amp;gt;
&amp;lt;/TitleBar.Title&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 06:45:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252427#M1051</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2024-08-05T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBar.Title component does not automatically center</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252445#M1052</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47555"&gt;@educampver&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Great! I can't believe I was styling the wrong component hahahaha&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, my friend!&lt;/P&gt;&lt;P&gt;Have a great day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maximiliano Lopes&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 08:21:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TitleBar-Title-component-does-not-automatically-center/m-p/252445#M1052</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2024-08-05T08:21:38Z</dc:date>
    </item>
  </channel>
</rss>

