Skip to content

Commit b4c990d

Browse files
committed
feat: add support for shortcut key combo
1 parent a7f21d0 commit b4c990d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Shared/Components/CICDHistory/History.components.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { ReactComponent as ZoomOut } from '../../../Assets/Icon/ic-exit-fullscre
2828
import './cicdHistory.scss'
2929

3030
export const LogResizeButton = ({
31+
shortcutCombo = 'f',
3132
onlyOnLogs = true,
3233
disableKeybindings = false,
3334
fullScreenView,
@@ -62,7 +63,7 @@ export const LogResizeButton = ({
6263
placement="top"
6364
arrow={false}
6465
className="default-tt"
65-
content={fullScreenView ? 'Exit fullscreen (f)' : 'Enter fullscreen (f)'}
66+
content={fullScreenView ? `Exit fullscreen (${shortcutCombo})` : `Enter fullscreen (${shortcutCombo})`}
6667
>
6768
<div>
6869
{fullScreenView ? (

src/Shared/Components/CICDHistory/types.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export enum FetchIdDataStatus {
4646
}
4747

4848
export interface LogResizeButtonType {
49+
shortcutCombo?: string
4950
onlyOnLogs?: boolean
5051
disableKeybindings?: boolean
5152
fullScreenView: boolean

0 commit comments

Comments
 (0)