[web] Hide pdf-log-entry-content when empty + fixup search "count" color (#21977)

* Hide `PdfLogEntryContent` when there is no content

* Fixup in search "count": `--ol-blue-gray-4` doesn't exist in SCSS

* Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller

* Revert "Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller"

This reverts commit 01812fa2b108b94c99d250c9a39e4f3c41b36781.

* Hide .log-entry-content when empty, using CSS

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: c5096b362600058535bd645cf11dad255e941fb9
This commit is contained in:
Antoine Clausse 2024-11-20 14:03:57 +01:00 committed by Copybot
parent 485bccebef
commit e576ffd63c
3 changed files with 9 additions and 1 deletions

View file

@ -358,7 +358,7 @@ const searchFormTheme = EditorView.theme({
},
'.ol-cm-search-form-position': {
flexShrink: 0,
color: 'var(--ol-blue-gray-4)',
color: 'var(--content-secondary)',
},
'.ol-cm-search-hidden-inputs': {
position: 'absolute',

View file

@ -127,6 +127,10 @@
}
.log-entry-content {
&:empty {
display: none;
}
background-color: #fff;
padding: @padding-sm;
}

View file

@ -141,6 +141,10 @@
}
.log-entry-content {
&:empty {
display: none;
}
background-color: var(--bg-light-primary);
padding: var(--spacing-04);
}