Skip to content

Commit 098afb5

Browse files
committed
doc: Theme fixes
Theme fixes Signed-off-by: Uma Praseeda <uma.praseeda@nordicsemi.no>
1 parent 5c10463 commit 098afb5

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

sphinx_ncs_theme/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@
138138
target="_blank"
139139
rel="noopener noreferrer"
140140
class="btn ncs-btn-header">
141-
<span class="ncs-label-long">{{ theme_ncs_label | default('nRF Connect SDK') }}</span>
142-
<span class="ncs-label-short">NCS</span>
141+
<span class="ncs-label-long">{{ theme_ncs_label | default('nRF Connect Docs') }}</span>
142+
<span class="ncs-label-short">nRF Connect Docs</span>
143143
</a>
144144
{%- endif %}
145145
</div>

sphinx_ncs_theme/static/css/nordic.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,16 @@ kbd {
654654
.ncs-header-top .ncs-btn-versions {
655655
margin-right: 0;
656656
}
657+
/* Versions dropdown: wrapper/menu match toggle width */
658+
.ncs-header-top .dropdown:has(.ncs-btn-versions) {
659+
width: fit-content;
660+
max-width: 100%;
661+
}
662+
.ncs-header-top .dropdown:has(.ncs-btn-versions) .dropdown-menu {
663+
width: 100%;
664+
min-width: 100%;
665+
box-sizing: border-box;
666+
}
657667
.ncs-btn-header:hover {
658668
background-color: #e0f4f9 !important;
659669
color: #0033a0 !important;
@@ -801,7 +811,7 @@ kbd {
801811
.ncs-header-top .row > .col-md-4 {
802812
min-width: 0;
803813
max-width: 50%;
804-
overflow: hidden;
814+
overflow: visible;
805815
margin-left: auto;
806816
margin-right: 0;
807817
}
@@ -815,7 +825,7 @@ kbd {
815825
.ncs-header-top .row > .col-md-4.d-flex .dropdown,
816826
.ncs-header-top .row > .col-md-4.d-flex .ncs-btn-header {
817827
flex-shrink: 1 !important;
818-
min-width: 10rem !important;
828+
min-width: 12.5rem !important;
819829
max-width: 100%;
820830
}
821831
.ncs-header-top .row > .col-md-4 .dropdown .ncs-btn-versions,
@@ -947,7 +957,7 @@ kbd {
947957
.ncs-header-top .row > .col-md-4 .dropdown,
948958
.ncs-header-top .row > .col-md-4 .ncs-btn-header {
949959
flex: 0 0 auto;
950-
min-width: 0;
960+
min-width: 100%;
951961
max-width: 100%;
952962
margin-right: 0px !important;
953963
}

sphinx_ncs_theme/static/js/ncs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function NCS () {
143143
ncs.findCurrentVersion();
144144
ncs.findCurrentPage();
145145
ncs.updateVersionDropDown();
146-
ncs.showVersion();
146+
/*ncs.showVersion();*/
147147
};
148148

149149
const NCS_SESSION_KEY = "ncs";

0 commit comments

Comments
 (0)