Compare commits

...

4 Commits
dev ... main

Author SHA1 Message Date
Stephan Richter 1ffafedc58 improved CSS 8 hours ago
Stephan Richter 903f1a1d7f improved CSS 1 day ago
Stephan Richter 358225daee added webp to the list of image formats recognized by the files page 1 day ago
Stephan Richter 84b22e9b94 bugfix: it was not possible to create new locations on the top level – this is now fixed 1 day ago
  1. 2
      frontend/src/routes/files/Index.svelte
  2. 5
      stock/src/main/java/de/srsoftware/umbrella/stock/SqliteDb.java
  3. 4
      web/src/main/resources/web/css/bloodshed.css
  4. 6
      web/src/main/resources/web/css/default.css
  5. 6
      web/src/main/resources/web/css/winter.css

2
frontend/src/routes/files/Index.svelte

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
import { t } from '../../translations.svelte';
import { user } from '../../user.svelte';
const image_extensions = ['jpg','jpeg','gif','png','svg'];
const image_extensions = ['jpg','jpeg','gif','png','svg','webp'];
const router = useTinyRouter();
let children = $state({});
let new_dir = $state(null);

5
stock/src/main/java/de/srsoftware/umbrella/stock/SqliteDb.java

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
/* © SRSoftware 2025 */
package de.srsoftware.umbrella.stock;
import static de.srsoftware.tools.Optionals.is0;
import static de.srsoftware.tools.Optionals.nullIfEmpty;
import static de.srsoftware.tools.jdbc.Condition.equal;
import static de.srsoftware.tools.jdbc.Condition.isNull;
@ -302,11 +303,11 @@ public class SqliteDb extends BaseDb implements StockDb { @@ -302,11 +303,11 @@ public class SqliteDb extends BaseDb implements StockDb {
@Override
public DbLocation save(DbLocation location) {
var parentId = location.parent() == 0 ? null : location.parent();
var parentId = is0(location.parent()) ? null : location.parent();
if (location.id() == 0) { // new location
try {
var rs = insertInto(TABLE_LOCATIONS,OWNER,PARENT_LOCATION_ID,NAME,DESCRIPTION)
.values(location.owner().dbCode(),location.parent() == 0 ? null : parentId,location.name(),location.description())
.values(location.owner().dbCode(),parentId,location.name(),location.description())
.execute(db).getGeneratedKeys();
long id = 0;
if (rs.next()) id = rs.getLong(1);

4
web/src/main/resources/web/css/bloodshed.css

@ -53,6 +53,10 @@ footer { @@ -53,6 +53,10 @@ footer {
margin: 5px;
}
img {
max-width: 100%;
}
nav {
position: sticky;
z-index: 100;

6
web/src/main/resources/web/css/default.css

@ -41,7 +41,7 @@ fieldset[tabindex="0"]{ @@ -41,7 +41,7 @@ fieldset[tabindex="0"]{
overflow: hidden;
}
fieldset[tabindex="0"]:focus-within{
fieldset[tabindex="0"]:hover{
max-height: unset;
}
@ -53,6 +53,10 @@ footer { @@ -53,6 +53,10 @@ footer {
margin: 5px;
}
img {
max-width: 100%;
}
nav {
position: sticky;
z-index: 100;

6
web/src/main/resources/web/css/winter.css

@ -41,7 +41,7 @@ fieldset[tabindex="0"]{ @@ -41,7 +41,7 @@ fieldset[tabindex="0"]{
overflow: hidden;
}
fieldset[tabindex="0"]:focus-within{
fieldset[tabindex="0"]:hover{
max-height: unset;
}
@ -53,6 +53,10 @@ footer { @@ -53,6 +53,10 @@ footer {
margin: 5px;
}
img {
max-width: 100%;
}
nav {
position: sticky;
z-index: 100;

Loading…
Cancel
Save