mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Merge pull request #27053 from overleaf/dp-review-panel-disabled
Disable review panel tab when it cannot be opened in new editor GitOrigin-RevId: 586ef06bc7cd27efdec6cb7ccc287f4ad41e4da5
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -65,6 +65,10 @@ body {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
|
||||
&.disabled {
|
||||
color: var(--content-disabled-themed);
|
||||
}
|
||||
|
||||
&:visited,
|
||||
&:focus {
|
||||
color: var(--ide-rail-color);
|
||||
|
||||
Reference in New Issue
Block a user