Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/WidgetGroup.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface Item {
id: string;
size?: 'small' | 'medium';
card?: 'dark' | 'graphite' | 'light' | 'translucent' | null;
appearance?: 'dark';
title: string;
label?: string;
}
Expand Down Expand Up @@ -53,7 +54,7 @@ const built = items.map((it) => {
<div
class="wpv__card"
data-card={b.card ?? b.declared.card ?? undefined}
data-appearance={b.declared.appearance}
data-appearance={b.appearance ?? b.declared.appearance}
style={`width:${b.w}px;height:${CARD_H}px;border-radius:${RADIUS}px;`}
>
<iframe
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/docs/widgets/weather.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Current weather for one place.
items={[
{ type: 'weather', file: 'index.html', id: 'w-weather', title: 'Weather, clear day', label: 'Clear day' },
{ type: 'weather', file: 'index.html', id: 'w-weather-rain', title: 'Weather, rain', label: 'Rain' },
{ type: 'weather', file: 'index.html', id: 'w-weather-night', title: 'Weather, night', label: 'Night' },
{ type: 'weather', file: 'index.html', id: 'w-weather-night', appearance: 'dark', title: 'Weather, night', label: 'Night' },
]} />

Small only.
Expand Down
Loading