Skip to content

Commit d71d09d

Browse files
committed
💄 Fix article-menu width responsivity
1 parent 58e76fa commit d71d09d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Article.njs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ class Article extends Nullstack {
9999
class={`transition delay-300 fixed bottom-10 right-10 bg-pink-600 text-white shadow-xl rounded-full py-2 px-4 z-50 md:hidden ring-0 transform ${this.expanded ? 'rotate-180 transform' : ''}`}>
100100
<Arrow size={20} />
101101
</button>
102-
<aside class={`w-full md:w-80 fixed top-0 left-0 md:relative z-40 md:z-auto bg-white dark:bg-gray-900 h-screen md:h-auto p-4 overflow-y-auto md:p-0 md:pr-4 transform pb-24 sm:pb-0 transition sm:transition-none delay-500 delay-0 ${this.expanded ? 'translate-y-0' : 'translate-y-full md:translate-y-0'}`}>
102+
<aside class={`w-full md:w-3/12 fixed top-0 left-0 md:relative z-40 md:z-auto bg-white dark:bg-gray-900 h-screen md:h-auto p-4 overflow-y-auto md:p-0 md:pr-4 transform pb-24 sm:pb-0 transition sm:transition-none delay-500 delay-0 ${this.expanded ? 'translate-y-0' : 'translate-y-full md:translate-y-0'}`}>
103103
{this.topics?.map((topic) => <Topic {...topic} />)}
104104
</aside>
105-
<article class="w-full pb-24">
105+
<article class="w-full md:w-9/12 pb-24">
106106
<h1 class="text-pink-600 text-4xl font-light block mb-8"> {this.title} </h1>
107107
<div html={this.html} class="prose dark:prose-dark max-w-none" />
108108
</article>

0 commit comments

Comments
 (0)