Skip to content

Commit ed686e1

Browse files
bugclerkMrt134
andauthored
PD-2332: Make TNC button styling consistent with TrueNAS Apps button (#4263)
Remove the icon from TNC Style the TNC button so that it is consistent with the TrueNAS Apps button, which does have an icon. Local build test with changes: (cherry picked from commit 20e60fb) Co-authored-by: Tim Moore <Mrt134@users.noreply.github.com>
1 parent d92421b commit ed686e1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

data/menu/more.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ more:
88
- name: TrueNAS Connect
99
ref: "https://connect.truenas.com/"
1010
external: true
11-
icon: "gdoc_arrow_right_alt"
11+
icon: ""
1212
- name: TrueNAS API Docs
1313
ref: "https://api.truenas.com/"
1414
external: true

static/custom.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,9 @@ pre.gdoc-mermaid.mermaid.mermaid_sizing {
25622562
text-decoration: none !important;
25632563
margin: -.5em !important;
25642564
transition: all 0.3s ease !important;
2565-
width: auto !important;
2565+
width: 75% !important;
2566+
min-height: 40px !important;
2567+
box-sizing: border-box !important;
25662568
}
25672569

25682570
/* Remove styling from the inner link since parent span is now the button */
@@ -2612,6 +2614,16 @@ pre.gdoc-mermaid.mermaid.mermaid_sizing {
26122614
fill: white !important;
26132615
}
26142616

2617+
/* Style the TrueNAS Connect button (nth-child(2)) - no icon, but same dimensions */
2618+
.gdoc-nav section:last-child .gdoc-nav__list li:nth-child(2) svg.gdoc-icon {
2619+
display: none !important; /* Hide any empty icon elements */
2620+
}
2621+
2622+
/* Ensure Connect button text is properly centered without icon */
2623+
.gdoc-nav section:last-child .gdoc-nav__list li:nth-child(2) span.flex {
2624+
gap: 0 !important; /* Remove any gap since there's no icon */
2625+
}
2626+
26152627
/* Reorder the menu items - move Apps Market to the very top */
26162628
.gdoc-nav section:last-child .gdoc-nav__list {
26172629
display: flex !important;

0 commit comments

Comments
 (0)