From 1ea2df1292e70f4d19ac8d19891ee748674652e6 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 2 Apr 2026 17:55:43 +0000 Subject: [PATCH] v4 --- core/__pycache__/views.cpython-311.pyc | Bin 28115 -> 28399 bytes core/templates/core/calendar_embed.html | 4 +- .../core/includes/calendar_widget.html | 6 +- core/views.py | 7 +- static/css/custom.css | 64 +++++++++++++++++- staticfiles/css/custom.css | 64 +++++++++++++++++- 6 files changed, 133 insertions(+), 12 deletions(-) diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index cabbde8bb02a5f494e1574ff154bd546f8988813..ec327bdd558dd998e85673c92dcf46162d5313a6 100644 GIT binary patch delta 2214 zcmah~eN0nV6o2=%uRu!?L5F;{fQlWTQot{)Y`TDpIya0cN}%m~N<*RSmWrB9aXO>Z zDS9&9{Fq;v-%iZ?!^F+a#VtmiLnm`sL!2AVm_@L0uN$0#vmAKO2=`p5NRTE@WU{Y(&!;5YP1G5CwTe?#ION9{uohStKfy$c^z9oZK=edwEf;0hz+^Gx&qniQxM*X%1qZ$a z!B0A^JQXn*TdmZ)6uCMSwR(}$8&LR4Tvg|MX##Y0Hqzbkf(vnY0faY~-ck*FT`WWdJ6|66diSHl{ioS-R zZi(U#>YI2#ndQ)bC5Mdh16>gAucqG%Bxf?hEA)sfs55ZSZM+0^1Jf^K+%o&~R7%Ge002 z*3#O0u(C*-h8U??t?uHj;g`bKeq7*4`b(@EIiNJO8*4yz%Q6D~VSq%K@d zQHM^t&e%2RDH&nxCU=UTzj@9uwdkcYEc$0O@m~lc2mlO|vrvtFa-nn&4S8z)@H-N#p8ccT9z~IJcYSPaDm`kgkYFI;C3s1KaV04 z>992DXY^PdT4t$)J#9I z{6D%M(2AKr%RiTxmOqSG9|2WEyN@AtB#b{s=$8`89mN$tzG&3r_Td}nJJBI%QWhx< zP1RnfOY!<8v{TaOSjtK&=Q;*#P8>u|O;+#EFzZ;4`tl~V&TLh2#f?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DedM+Ybla=~}P6i8as~JE9f@8oVBNnp^g&EsD&!5k(3`p-@KY86_UT z?kAyZA%!NR>u5BNeRPKUR=H8-Y3Tn2_PAGv)0WYf;qJ%qWM zNcb_exG%MMI1H_ZYuIXvN*T6|c1OZ&V=VVf2*W0uWP!7l$&j^T5K|x9IL|Tx=YGgE zwK0>i7hFPB9EXKjz1yfdLtm~vv^!?-X zwF`b*dWfAOI89*O$aLXyx?Y3FoNhi&7aON*gwy%ubksN%H>YyrjDYsp$bB#`q&p~# xww33YQV`RTKCqVHMIZ30)A -
+
+
{% if show_embed_header %}
diff --git a/core/templates/core/includes/calendar_widget.html b/core/templates/core/includes/calendar_widget.html index 7555b3f..5cd257e 100644 --- a/core/templates/core/includes/calendar_widget.html +++ b/core/templates/core/includes/calendar_widget.html @@ -5,9 +5,9 @@

{{ month_label }}

diff --git a/core/views.py b/core/views.py index c136494..5949651 100644 --- a/core/views.py +++ b/core/views.py @@ -116,7 +116,11 @@ def _embed_base_url(request): def _show_embed_header(request): - return request.GET.get('header', '1') != '0' + return request.GET.get('header', '0') != '0' + + +def _embed_header_value(request): + return '1' if _show_embed_header(request) else '0' def _serialize_event(event): @@ -501,6 +505,7 @@ def calendar_embed(request): page_title='Embeddable calendar', embedded=True, show_embed_header=_show_embed_header(request), + embed_header_value=_embed_header_value(request), **month_context, ), ) diff --git a/static/css/custom.css b/static/css/custom.css index a41b0a1..d6000e3 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -575,10 +575,21 @@ span { margin-bottom: 0.7rem; } +.embed-section-wide { + padding: 0.3rem 0 0.85rem; +} + +.embed-container { + width: 100%; + max-width: none; + margin: 0 auto; + padding-inline: clamp(0.35rem, 1vw, 0.85rem); +} + .embed-shell-card { - padding: 1.2rem; - margin: 1.2rem auto; - max-width: 1200px; + padding: clamp(0.6rem, 1vw, 0.95rem); + margin: 0; + max-width: none; } .embed-section .calendar-card { @@ -588,6 +599,39 @@ span { padding: 0; } +.calendar-embed .calendar-toolbar { + margin-bottom: 0.7rem; +} + +.calendar-embed .calendar-weekdays, +.calendar-embed .calendar-grid { + gap: 0.5rem; +} + +.calendar-embed .calendar-day { + min-height: 96px; + padding: 0.7rem; + gap: 0.45rem; +} + +.calendar-embed .calendar-day-number { + font-size: 1.22rem; +} + +.calendar-embed .calendar-badge { + padding: 0.34rem 0.58rem; + font-size: 0.78rem; +} + +.calendar-embed .calendar-title { + font-size: clamp(1.35rem, 2vw, 1.7rem); +} + +.calendar-embed .toolbar-label { + font-size: 0.82rem; + margin-bottom: 0.2rem !important; +} + .event-card, .detail-card, .form-card, @@ -821,4 +865,18 @@ textarea, .embed-section { padding-bottom: 2.3rem; } + + .embed-container { + padding-inline: 0.4rem; + } + + .embed-shell-card { + margin-top: 0; + padding: 0.55rem; + } + + .calendar-embed .calendar-day { + min-height: 92px; + padding: 0.62rem; + } } diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index a41b0a1..d6000e3 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -575,10 +575,21 @@ span { margin-bottom: 0.7rem; } +.embed-section-wide { + padding: 0.3rem 0 0.85rem; +} + +.embed-container { + width: 100%; + max-width: none; + margin: 0 auto; + padding-inline: clamp(0.35rem, 1vw, 0.85rem); +} + .embed-shell-card { - padding: 1.2rem; - margin: 1.2rem auto; - max-width: 1200px; + padding: clamp(0.6rem, 1vw, 0.95rem); + margin: 0; + max-width: none; } .embed-section .calendar-card { @@ -588,6 +599,39 @@ span { padding: 0; } +.calendar-embed .calendar-toolbar { + margin-bottom: 0.7rem; +} + +.calendar-embed .calendar-weekdays, +.calendar-embed .calendar-grid { + gap: 0.5rem; +} + +.calendar-embed .calendar-day { + min-height: 96px; + padding: 0.7rem; + gap: 0.45rem; +} + +.calendar-embed .calendar-day-number { + font-size: 1.22rem; +} + +.calendar-embed .calendar-badge { + padding: 0.34rem 0.58rem; + font-size: 0.78rem; +} + +.calendar-embed .calendar-title { + font-size: clamp(1.35rem, 2vw, 1.7rem); +} + +.calendar-embed .toolbar-label { + font-size: 0.82rem; + margin-bottom: 0.2rem !important; +} + .event-card, .detail-card, .form-card, @@ -821,4 +865,18 @@ textarea, .embed-section { padding-bottom: 2.3rem; } + + .embed-container { + padding-inline: 0.4rem; + } + + .embed-shell-card { + margin-top: 0; + padding: 0.55rem; + } + + .calendar-embed .calendar-day { + min-height: 92px; + padding: 0.62rem; + } }