Two issues need to be addressed in your code:
- The viewbox size of your SVG is causing overflow due to being too large
- Using a 6-column layout on the logo wrapper div will not achieve the desired effect
To resolve these issues, it is recommended to remove the row and column classes from the logo and arrow wrapper divs. You can find an updated version of your code with custom CSS, new classes, and adjustments to the SVG's viewbox and x/y position here: https://jsfiddle.net/bomsqn0r/8/
Updated SVG:
<svg id="logoSvg" width="140" height="28" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<text transform="matrix(1 0 0 1 0 0)" xml:space="preserve" text-anchor="start" font-family="Noto Sans JP" font-size="24" id="svg_1" y="24" x="0" stroke-width="0" stroke="#000" fill="#fce15a">SOME LOGO</text>
</g>
</svg>
Updated HTML:
<div class="logo-arrow-container">
<div class="logo-container">
<svg id="logoSvg" width="140" height="28" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<text transform="matrix(1 0 0 1 0 0)" xml:space="preserve" text-anchor="start" font-family="Noto Sans JP" font-size="24" id="svg_1" y="24" x="0" stroke-width="0" stroke="#000" fill="#fce15a">SOME LOGO</text>
</g>
</svg>
</div>
<div class="arrow-container">
<button type="button" id="sidebarCollapse" class="btn btn-light float-right">
<i class="bi bi-caret-left-fill" style="color: #193D4C;"></i>
</button>
</div>
</div>
Added CSS:
.logo-arrow-container {
display: flex;
align-items: center;
}
.logo-container {
margin: 0 auto;
}
.arrow-container {
margin-right: 15px;
}