mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
add offsite icon to sidebar links that take you off the app (#508)
This commit is contained in:
@@ -136,6 +136,9 @@
|
||||
.actions {
|
||||
.positional-icon-visible;
|
||||
}
|
||||
.link-offsite {
|
||||
.positional-icon-visible;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:hover) .status-indicator {
|
||||
|
||||
@@ -334,12 +334,22 @@ class MainSideBar extends React.Component<MainSideBarProps, {}> {
|
||||
frontIcon={<i className="fa-sharp fa-regular fa-circle-question icon" />}
|
||||
contents="Documentation"
|
||||
onClick={() => openLink("https://docs.waveterm.dev")}
|
||||
endIcons={[
|
||||
<CenteredIcon key="offsite" className="link-offsite hoverEffect">
|
||||
<i className="fa-sharp fa-solid fa-arrow-up-right-from-square"></i>
|
||||
</CenteredIcon>,
|
||||
]}
|
||||
/>
|
||||
<SideBarItem
|
||||
key="discord"
|
||||
frontIcon={<i className="fa-brands fa-discord icon" />}
|
||||
contents="Discord"
|
||||
onClick={() => openLink("https://discord.gg/XfvZ334gwU")}
|
||||
endIcons={[
|
||||
<CenteredIcon key="offsite" className="link-offsite hoverEffect">
|
||||
<i className="fa-sharp fa-solid fa-arrow-up-right-from-square"></i>
|
||||
</CenteredIcon>,
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user