diff --git a/services/web/frontend/js/features/ide-redesign/components/rail.tsx b/services/web/frontend/js/features/ide-redesign/components/rail.tsx index 877e40666e..0c8d49202d 100644 --- a/services/web/frontend/js/features/ide-redesign/components/rail.tsx +++ b/services/web/frontend/js/features/ide-redesign/components/rail.tsx @@ -142,6 +142,7 @@ export const RailLayout = () => { title: t('review_panel'), component: null, hide: !features.trackChangesVisible, + disabled: view !== 'editor', }, { key: 'chat', @@ -160,7 +161,7 @@ export const RailLayout = () => { disabled: errorLogsDisabled, }, ], - [t, features.trackChangesVisible, newErrorlogs, errorLogsDisabled] + [t, features.trackChangesVisible, newErrorlogs, errorLogsDisabled, view] ) const railActions: RailAction[] = useMemo( diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/rail.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/rail.scss index bc8e42daaa..46f30a3028 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/rail.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/rail.scss @@ -65,6 +65,10 @@ body { position: relative; overflow: visible; + &.disabled { + color: var(--content-disabled-themed); + } + &:visited, &:focus { color: var(--ide-rail-color);