From fd87efd89f0f8eda0e8bc935df777e043f9302d8 Mon Sep 17 00:00:00 2001 From: Augustin Hiebel Date: Wed, 13 Dec 2023 16:53:20 +0100 Subject: [PATCH] Framework version 1.0.116 + horizontal Ladder card min height + recap card empty fix --- assets/styles/card.css | 2 +- framework/package.json | 2 +- pages/design-system/recapcard.js | 75 ++++++++++++++++++- pages/stryda/components/TopbarHighlights.js | 11 ++- .../components/TopbarHighlightsListItem.js | 2 +- pages/stryda/demo/demo-highlightmanager.js | 29 +++++-- 6 files changed, 106 insertions(+), 15 deletions(-) diff --git a/assets/styles/card.css b/assets/styles/card.css index 17908ff7..c5f3483b 100644 --- a/assets/styles/card.css +++ b/assets/styles/card.css @@ -1172,7 +1172,7 @@ text-center ; - > * { + > *:not(i):not(span) { &:is(:empty) { @apply hidden diff --git a/framework/package.json b/framework/package.json index a58dc1b7..cf30523b 100644 --- a/framework/package.json +++ b/framework/package.json @@ -1,4 +1,4 @@ { "name": "@g-loot/css-framework", - "version": "1.0.115" + "version": "1.0.116" } diff --git a/pages/design-system/recapcard.js b/pages/design-system/recapcard.js index 5b045e2d..d4c78e9d 100644 --- a/pages/design-system/recapcard.js +++ b/pages/design-system/recapcard.js @@ -583,6 +583,7 @@ const DSpage = () => { } rigthContent={ <> +
Recap created
@@ -632,7 +633,75 @@ const DSpage = () => { className="rounded" width="100%" height="200" - src="//jsfiddle.net/augustin_hiebel/gvoz8mne/embedded/html/dark/?bodyColor=212333&menuColor=1C1D2C&fontColor=FFFFFF&accentColor=F3C351" + src="//jsfiddle.net/augustin_hiebel/Lybzg376/embedded/html/dark/?bodyColor=212333&menuColor=1C1D2C&fontColor=FFFFFF&accentColor=F3C351" + > +
+
+ +
+
+ + + + } + rigthContent={ + <> +
+
+
Recap created
+
    +
  • Length: 00:59:00
  • +
  • Moments: 10
  • +
+
+
+ +
  • + +
  • +
  • + +
  • + + } + > + +
    + +
    +
    + + } + /> +
    +
    +
    @@ -776,7 +845,9 @@ const DSpage = () => {

    - Stryda is waiting for you to
    start playing your game... + Stryda is waiting for you to +
    + start playing your game...

    No recordings detected on this computer yet. diff --git a/pages/stryda/components/TopbarHighlights.js b/pages/stryda/components/TopbarHighlights.js index dd22f796..887f3834 100644 --- a/pages/stryda/components/TopbarHighlights.js +++ b/pages/stryda/components/TopbarHighlights.js @@ -34,10 +34,11 @@ const feedItems = [ }, ]; -export default function TopbarHighlights() { +export default function TopbarHighlights(props) { const uiContext = useContext(UiContext); const prototype = usePrototypeData(); const { query } = useRouter(); + const isStatic = props.isStatic || false; const empty = query.empty === "true" ? true : false; const [isEmpty, setIsEmpty] = useState(empty); const [activeTab, setActiveTab] = useState("list"); @@ -61,16 +62,18 @@ export default function TopbarHighlights() { const [hasNewHighlights, setHasNewHighlights] = useState(false); let interval; - const [isActive, setActive] = useState(false); + const [isActive, setActive] = useState(isStatic); const ref = useRef(null); const dropdownActive = (e) => { e.preventDefault(); - setActive(!isActive); + if(!isStatic) { + setActive(!isActive); + } }; const handleClickOutside = (e) => { - if (ref.current && !ref.current.contains(e.target)) { + if (!isStatic && ref.current && !ref.current.contains(e.target)) { setActive(false); } }; diff --git a/pages/stryda/components/TopbarHighlightsListItem.js b/pages/stryda/components/TopbarHighlightsListItem.js index 20de585c..4328c583 100644 --- a/pages/stryda/components/TopbarHighlightsListItem.js +++ b/pages/stryda/components/TopbarHighlightsListItem.js @@ -137,7 +137,7 @@ export default function TopbarHighlightsListItem({ return (