mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #26493 from overleaf/dp-raw-logs
Improvements to raw logs log entry ui in new editor GitOrigin-RevId: 516094fadfa4db7e82431c91b766dbe7e378b4a7
This commit is contained in:
@@ -49,7 +49,6 @@ function ErrorLogs() {
|
||||
|
||||
const includeErrors = activeTab === 'all' || activeTab === 'errors'
|
||||
const includeWarnings = activeTab === 'all' || activeTab === 'warnings'
|
||||
const includeInfo = activeTab === 'all' || activeTab === 'info'
|
||||
|
||||
return (
|
||||
<TabContainer onSelect={setActiveTab} defaultActiveKey={activeTab ?? 'all'}>
|
||||
@@ -94,13 +93,14 @@ function ErrorLogs() {
|
||||
/>
|
||||
)}
|
||||
|
||||
{rawLog && includeInfo && (
|
||||
{rawLog && activeTab === 'all' && (
|
||||
<LogEntry
|
||||
headerTitle={t('raw_logs')}
|
||||
rawContent={rawLog}
|
||||
entryAriaLabel={t('raw_logs_description')}
|
||||
level="raw"
|
||||
alwaysExpandRawContent
|
||||
showSourceLocationLink={false}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -61,9 +61,9 @@ function LogEntryHeader({
|
||||
const logEntryHeaderTextClasses = classNames('log-entry-header-text', {
|
||||
'log-entry-header-text-error': level === 'error',
|
||||
'log-entry-header-text-warning': level === 'warning',
|
||||
'log-entry-header-text-info':
|
||||
level === 'info' || level === 'typesetting' || level === 'raw',
|
||||
'log-entry-header-text-info': level === 'info' || level === 'typesetting',
|
||||
'log-entry-header-text-success': level === 'success',
|
||||
'log-entry-header-text-raw': level === 'raw',
|
||||
})
|
||||
|
||||
function checkLocationSpanOverflow(observedElement: ResizeObserverEntry) {
|
||||
|
||||
@@ -133,6 +133,10 @@
|
||||
color: var(--content-positive-themed);
|
||||
}
|
||||
|
||||
.log-entry-header-text-raw {
|
||||
color: var(--content-primary-themed);
|
||||
}
|
||||
|
||||
.log-entry-location {
|
||||
white-space: nowrap;
|
||||
direction: rtl;
|
||||
|
||||
Reference in New Issue
Block a user