diff --git a/dzen-assistant/admin/src/App.tsx b/dzen-assistant/admin/src/App.tsx index fce76f4..c344bf3 100644 --- a/dzen-assistant/admin/src/App.tsx +++ b/dzen-assistant/admin/src/App.tsx @@ -1843,8 +1843,8 @@ export default function App() { ) : null}
-
-
+
+
{isScheduledForFuture(selectedArticle.publishedAt) ? ( @@ -1859,7 +1859,7 @@ export default function App() {

Редактируйте блоки как в Medium. Для картинки выберите image-блок и нажмите кнопку случайного кадра.

-
+
{selectedArticle.status !== "published" || isScheduledForFuture(selectedArticle.publishedAt) ? ( <> -
-
-
+
+
diff --git a/dzen-assistant/admin/src/index.css b/dzen-assistant/admin/src/index.css index 84363f6..7158059 100644 --- a/dzen-assistant/admin/src/index.css +++ b/dzen-assistant/admin/src/index.css @@ -416,6 +416,65 @@ } } +@media (max-width: 640px) { + .modal-overlay { + align-items: flex-start; + padding: 0; + } + + .modal-panel { + width: 100%; + height: 100dvh; + max-height: 100dvh; + border-radius: 0; + border-left: 0; + border-right: 0; + } + + .article-modal-header { + flex-direction: column; + gap: 0.75rem; + padding: 0.75rem 1rem; + } + + .article-modal-intro { + width: 100%; + } + + .article-modal-intro > p { + max-width: 100%; + line-height: 1.35; + } + + .article-modal-actions { + width: 100%; + justify-content: flex-start; + } + + .article-publish-time { + flex: 1 1 100%; + width: 100%; + } + + .article-publish-time input { + min-width: 0; + width: 100%; + } + + .article-modal-body { + padding: 0.75rem; + } + + .article-modal-content { + padding: 1rem; + } + + .article-modal-content .article-editorjs .ce-block__content, + .article-modal-content .article-editorjs .ce-toolbar__content { + max-width: calc(100vw - 4rem); + } +} + @keyframes modal-overlay-in { from { opacity: 0;