Compare commits

..
9 Commits
Author SHA1 Message Date
Svilen Markov 24f93d8258 Merge pull request #275 from glanceapp/release/v0.6.3
Create release / release (push) Has been cancelled
Release/v0.6.3
2024-12-11 18:56:48 +00:00
Svilen Markov 01016e08d2 Merge branch 'main' into release/v0.6.3 2024-12-11 18:53:40 +00:00
Svilen Markov 949fde1517 Fix edge case in weather widget graph 2024-12-11 18:50:34 +00:00
Svilen Markov 804cf9916b Change simple icons provider and always use latest version 2024-12-11 18:47:30 +00:00
Svilen Markov ef24680baf Fix overlap issues in weather and dns-stats widgets 2024-12-11 18:38:09 +00:00
Svilen Markov 448c795982 Properly close code block in docs 2024-12-07 16:47:58 +00:00
Svilen Markov ee1d7599d5 Add note to preconfigured pages doc 2024-12-07 09:28:36 +00:00
Svilen Markov d90d39933a Merge pull request #228 from Dakhtara/patch-1
Fix typo on configuration for search autofocus property description
2024-10-01 15:28:42 +01:00
Anthony 7e38ab624a Update configuration.md 2024-10-01 08:59:11 +02:00
5 changed files with 21 additions and 6 deletions
+2 -1
View File
@@ -281,6 +281,7 @@ theme:
> .widget-type-rss a { > .widget-type-rss a {
> font-size: 1.5rem; > font-size: 1.5rem;
> } > }
> ```
> >
> In addition, you can also use the `css-class` property which is available on every widget to set custom class names for individual widgets. > In addition, you can also use the `css-class` property which is available on every widget to set custom class names for individual widgets.
@@ -852,7 +853,7 @@ Either a value from the table below or a URL to a custom search engine. Use `{QU
##### `new-tab` ##### `new-tab`
When set to `true`, swaps the shortcuts for showing results in the same or new tab, defaulting to showing results in a new tab. When set to `true`, swaps the shortcuts for showing results in the same or new tab, defaulting to showing results in a new tab.
##### `new-tab` ##### `autofocus`
When set to `true`, automatically focuses the search input on page load. When set to `true`, automatically focuses the search input on page load.
##### `bangs` ##### `bangs`
+4
View File
@@ -4,6 +4,10 @@ Don't want to spend time configuring pages from scratch? No problem! Simply copy
Pull requests with your page configurations are welcome! Pull requests with your page configurations are welcome!
> [!NOTE]
>
> Pages must be placed under a top level `pages:` key, you can read more about that [here](configuration.md#pages).
## Startpage ## Startpage
![](images/startpage-preview.png) ![](images/startpage-preview.png)
+6 -3
View File
@@ -514,6 +514,7 @@ kbd:active {
list-style: none; list-style: none;
position: relative; position: relative;
display: flex; display: flex;
z-index: 1;
} }
.details[open] .summary { .details[open] .summary {
@@ -535,6 +536,10 @@ kbd:active {
opacity: 1; opacity: 1;
} }
.details:not([open]) .list-with-transition {
display: none;
}
.summary::after { .summary::after {
content: "◀"; content: "◀";
font-size: 1.2em; font-size: 1.2em;
@@ -707,6 +712,7 @@ details[open] .summary::after {
justify-content: space-between; justify-content: space-between;
position: relative; position: relative;
margin-bottom: 1.8rem; margin-bottom: 1.8rem;
z-index: 1;
} }
.widget-error-header::before { .widget-error-header::before {
@@ -1095,7 +1101,6 @@ details[open] .summary::after {
.dns-stats-graph-gridlines-container { .dns-stats-graph-gridlines-container {
position: absolute; position: absolute;
z-index: -1;
inset: 0; inset: 0;
} }
@@ -1122,7 +1127,6 @@ details[open] .summary::after {
content: ''; content: '';
position: absolute; position: absolute;
inset: 1px 0; inset: 1px 0;
z-index: -1;
opacity: 0; opacity: 0;
background: var(--color-text-base); background: var(--color-text-base);
transition: opacity .2s; transition: opacity .2s;
@@ -1264,7 +1268,6 @@ details[open] .summary::after {
overflow: hidden; overflow: hidden;
mask-image: linear-gradient(0deg, transparent 40%, #000); mask-image: linear-gradient(0deg, transparent 40%, #000);
-webkit-mask-image: linear-gradient(0deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(0deg, transparent 40%, #000);
z-index: -1;
} }
.weather-column-rain::before { .weather-column-rain::before {
+8 -1
View File
@@ -189,12 +189,19 @@ func FetchWeatherForPlace(place *PlaceJson, units string) (*Weather, error) {
minT := slices.Min(temperatures) minT := slices.Min(temperatures)
maxT := slices.Max(temperatures) maxT := slices.Max(temperatures)
temperaturesRange := float64(maxT - minT)
for i := 0; i < 12; i++ { for i := 0; i < 12; i++ {
bars = append(bars, weatherColumn{ bars = append(bars, weatherColumn{
Temperature: temperatures[i], Temperature: temperatures[i],
Scale: float64(temperatures[i]-minT) / float64(maxT-minT),
HasPrecipitation: precipitations[i], HasPrecipitation: precipitations[i],
}) })
if temperaturesRange > 0 {
bars[i].Scale = float64(temperatures[i]-minT) / temperaturesRange
} else {
bars[i].Scale = 1
}
} }
} }
+1 -1
View File
@@ -162,7 +162,7 @@ func toSimpleIconIfPrefixed(icon string) (string, bool) {
} }
icon = strings.TrimPrefix(icon, "si:") icon = strings.TrimPrefix(icon, "si:")
icon = "https://cdnjs.cloudflare.com/ajax/libs/simple-icons/11.14.0/" + icon + ".svg" icon = "https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/" + icon + ".svg"
return icon, true return icon, true
} }