From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.
---
src/feed/editor.scss | 128 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 128 insertions(+), 0 deletions(-)
diff --git a/src/feed/editor.scss b/src/feed/editor.scss
new file mode 100644
index 0000000..8f0baab
--- /dev/null
+++ b/src/feed/editor.scss
@@ -0,0 +1,128 @@
+.feed-content-types {
+ margin-bottom: 16px;
+
+ .components-base-control__label {
+ margin-bottom: 8px;
+ font-weight: 500;
+ }
+
+ .components-checkbox-control {
+ margin-bottom: 8px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ .components-checkbox-control__input-container {
+ margin-right: 8px;
+ }
+ }
+}
+.feed-block {
+ border: 1px solid #ddd;
+ padding: 20px;
+ background: white;
+
+ .feed-block-preview {
+ .filter-preview {
+ display: flex;
+ gap: 8px;
+ margin: 16px 0;
+ flex-wrap: wrap;
+
+ .content-type-badge {
+ background: #f0f0f0;
+ padding: 4px 8px;
+ border-radius: 4px;
+ font-size: 12px;
+ }
+ }
+
+ .feed-grid-placeholder {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
+ gap: 16px;
+ margin-top: 20px;
+
+ .grid-item-placeholder {
+ background: #f0f0f0;
+ aspect-ratio: 1;
+ border-radius: 4px;
+ }
+ }
+ }
+}
+
+.feed-content-types {
+ margin-bottom: 16px;
+
+ .components-base-control__label {
+ margin-bottom: 8px;
+ font-weight: 500;
+ }
+
+ .checkbox-list {
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ max-height: 200px;
+ overflow-y: auto;
+ padding: 8px;
+ background: white;
+
+ .components-checkbox-control {
+ margin: 4px 0;
+
+ &:first-child {
+ margin-top: 0;
+ }
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+ }
+
+ .select-all-wrapper {
+ margin-top: 8px;
+ padding-top: 8px;
+ border-top: 1px solid #ddd;
+ }
+
+ .components-checkbox-control__input-container {
+ margin-right: 8px;
+ }
+}
+.feed-block {
+ border: 1px solid #ddd;
+ padding: 20px;
+ background: white;
+
+ .feed-block-preview {
+ .filter-preview {
+ display: flex;
+ gap: 8px;
+ margin: 16px 0;
+ flex-wrap: wrap;
+
+ .content-type-badge {
+ background: #f0f0f0;
+ padding: 4px 8px;
+ border-radius: 4px;
+ font-size: 12px;
+ }
+ }
+
+ .feed-grid-placeholder {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
+ gap: 16px;
+ margin-top: 20px;
+
+ .grid-item-placeholder {
+ background: #f0f0f0;
+ aspect-ratio: 1;
+ border-radius: 4px;
+ }
+ }
+ }
+}
--
Gitblit v1.10.0