fix: content tags drawer width (#910)

This commit is contained in:
Rômulo Penido
2024-04-02 04:10:14 -03:00
committed by GitHub
parent d44edb84a0
commit 0a50bbc9ef
3 changed files with 11 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ const ContentTagsDrawer = ({ id, onClose }) => {
return (
<div className="mt-1">
<div id="content-tags-drawer" className="mt-1">
<Container size="xl">
<CloseButton onClick={() => onCloseDrawer()} data-testid="drawer-close-button" />
<span>{intl.formatMessage(messages.headerSubtitle)}</span>

View File

@@ -0,0 +1,9 @@
.pgn__sheet-component:has(#content-tags-drawer) {
min-width: max(500px, 33vw);
}
@media only screen and (max-width: 500px) {
.pgn__sheet-component:has(#content-tags-drawer) {
min-width: 100vw;
}
}

View File

@@ -1,2 +1,3 @@
@import "content-tags-drawer/TagBubble";
@import "content-tags-drawer/tags-sidebar-controls/TagsSidebarControls";
@import "content-tags-drawer/ContentTagsDrawer";