Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
hotfix: item description
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxisHenry committed Dec 8, 2023
1 parent df6aef3 commit 24efb78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
8 changes: 1 addition & 7 deletions app/Classes/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,7 @@ private static function formatUrl(string $url, bool $isDownloadUrl = false)
{
$delimiter = $isDownloadUrl ? "=" : "shared/";
$parts = explode($delimiter, $url);
$parts[0] .= $delimiter;
if (!$isDownloadUrl) {
$folder = explode("/", $parts[1])[0];
$parts[0] .= "$folder/";
$parts[1] = str_replace("$folder/", "", $parts[1]);
}
return $parts[0] . Item::formatFilename($parts[1]);
return $delimiter . $parts[1];
}

/**
Expand Down
15 changes: 4 additions & 11 deletions public/build/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,12 @@ a.item {
display: flex;
flex-direction: column;
}
.item-main-description span {
display: none;
}
}

@media screen and (max-width: 992px) {
.item-description {
flex-direction: column;
gap: 2px;
}

.item-main-description {
display: flex;
flex-direction: column;
gap: 2px;
}

.description {
display: none;
}
Expand Down Expand Up @@ -412,6 +404,7 @@ ul.compact li {
border-top-width: inherit;
flex: 1;
border-radius: 0!important;
min-width: 350px;
}

ul li .icon {
Expand Down
2 changes: 1 addition & 1 deletion public/build/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if (zip) {
}

document.querySelector(".switch-compact-mode div p").addEventListener("click", (e) => {
let items = document.querySelectorAll("ul");
let items = document.querySelectorAll("ul:not(.navbar-nav)");
for (let item of items) {
if (e.target.checked) {
item.classList.add("compact");
Expand Down

0 comments on commit 24efb78

Please sign in to comment.