diff --git a/src/app/common/elements/button.less b/src/app/common/elements/button.less index d6090577f..3a9473bed 100644 --- a/src/app/common/elements/button.less +++ b/src/app/common/elements/button.less @@ -1,8 +1,6 @@ .wave-button { background: none; - color: inherit; border: none; - font: inherit; cursor: pointer; outline: inherit; display: flex; @@ -12,64 +10,64 @@ border-radius: 6px; height: auto; line-height: 1.5; + display: block; + white-space: nowrap; + + color: var(--form-element-text-color); + background: var(--form-element-primary-color); + i { + fill: var(--form-element-text-color); + } &.primary { color: var(--form-element-text-color); background: var(--form-element-primary-color); + i { + fill: var(--form-element-text-color); + } + } + + &.primary.outlined { + background: none; + border: 1px solid var(--form-element-primary-color); i { fill: var(--form-element-primary-color); } + } - &.solid { - color: var(--form-element-text-color); - background: var(--form-element-primary-color); - - i { - fill: var(--form-element-text-color); - } - } - - &.outlined { - background: none; - border: 1px solid var(--form-element-primary-color); - } - - &.ghost { - background: none; - } - - &:hover { - color: var(--form-element-text-color); + &.primary.ghost { + background: none; + i { + fill: var(--form-element-primary-color); } } &.secondary { - color: var(--form-element-text-color); - background: none; color: var(--form-element-text-color); background: var(--form-element-secondary-color); - box-shadow: none; - - &.solid { - color: var(--form-element-text-color); - background: var(--form-element-secondary-color); - box-shadow: none; + i { + fill: var(--form-element-text-color); } + } - &.outlined { - background: none; - border: 1px solid var(--form-element-secondary-color); - } + &.secondary.outlined { + background: none; + border: 1px solid var(--form-element-text-color); + } - &.ghost { - background: none; - padding: 6px 10px; + &.secondary.ghost { + background: none; + } - i { - fill: var(--form-element-primary-color); - } - } + &.secondary.danger { + color: var(--app-error-color); + } + + &.small { + padding: 4px 8px; + font-size: 12px; + border-radius: 3.6px; } &.term-inline { diff --git a/src/app/common/modals/alert.tsx b/src/app/common/modals/alert.tsx index a0fb5fb58..59800f8a5 100644 --- a/src/app/common/modals/alert.tsx +++ b/src/app/common/modals/alert.tsx @@ -14,7 +14,7 @@ import "./alert.less"; class AlertModal extends React.Component<{}, {}> { @boundMethod closeModal(): void { - GlobalModel.cancelAlert(); + GlobalModel.modalsModel.popModal(() => GlobalModel.cancelAlert()); } @boundMethod diff --git a/src/app/common/modals/screensettings.tsx b/src/app/common/modals/screensettings.tsx index d1813f68b..164009524 100644 --- a/src/app/common/modals/screensettings.tsx +++ b/src/app/common/modals/screensettings.tsx @@ -10,7 +10,7 @@ import cn from "classnames"; import { GlobalModel, GlobalCommandRunner, Screen } from "@/models"; import { Toggle, InlineSettingsTextEdit, SettingsError, Modal, Dropdown, Tooltip } from "@/elements"; import * as util from "@/util/util"; -import { TabIcon } from "@/common/elements/tabicon"; +import { TabIcon, Button } from "@/elements"; import { ReactComponent as GlobeIcon } from "@/assets/icons/globe.svg"; import { ReactComponent as StatusCircleIcon } from "@/assets/icons/statuscircle.svg"; import * as appconst from "@/app/appconst"; @@ -334,12 +334,9 @@ class ScreenSettingsModal extends React.Component<{}, {}> {
-
+
+
diff --git a/src/app/common/modals/sessionsettings.tsx b/src/app/common/modals/sessionsettings.tsx index 31448c34e..d48fabf14 100644 --- a/src/app/common/modals/sessionsettings.tsx +++ b/src/app/common/modals/sessionsettings.tsx @@ -6,6 +6,7 @@ import * as mobxReact from "mobx-react"; import * as mobx from "mobx"; import { boundMethod } from "autobind-decorator"; import { GlobalModel, GlobalCommandRunner, Session } from "@/models"; +import { Button } from "@/elements"; import { Toggle, InlineSettingsTextEdit, SettingsError, Modal, Tooltip } from "@/elements"; import * as util from "@/util/util"; @@ -133,12 +134,9 @@ class SessionSettingsModal extends React.Component<{}, {}> {
-
+
+
diff --git a/src/app/common/modals/viewremoteconndetail.tsx b/src/app/common/modals/viewremoteconndetail.tsx index 2a318fbab..36a14120d 100644 --- a/src/app/common/modals/viewremoteconndetail.tsx +++ b/src/app/common/modals/viewremoteconndetail.tsx @@ -192,7 +192,7 @@ class ViewRemoteConnDetailModal extends React.Component<{}, {}> { ); let archiveButton = ( - ); @@ -207,7 +207,7 @@ class ViewRemoteConnDetailModal extends React.Component<{}, {}> { } if (remote.sshconfigsrc == "sshconfig-import") { archiveButton = ( - diff --git a/src/models/rightsidebar.ts b/src/models/rightsidebar.ts index 0a712e5c0..17cb2a057 100644 --- a/src/models/rightsidebar.ts +++ b/src/models/rightsidebar.ts @@ -70,10 +70,6 @@ class RightSidebarModel implements SidebarModel { } getCollapsed(): boolean { - // disable right sidebar in production - if (!this.globalModel.isDev) { - return true; - } const clientData = this.globalModel.clientData.get(); const collapsed = clientData?.clientopts?.rightsidebar?.collapsed; if (this.isDragging.get()) {