Skip to content
Open
Changes from 1 commit
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
16 changes: 16 additions & 0 deletions header.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,18 @@
}

document.addEventListener('DOMContentLoaded', main);

function goUp() {
const urlParts = window.location.pathname.split('/');
if (urlParts.length == 0) {
return
}
if (urlParts[urlParts.length - 1] == "") {
urlParts.pop();
}
urlParts.pop();
window.open(urlParts.join('/') + '/', '_self');
}
</script>
<style>
html{height: 100%; margin: 0}
Expand All @@ -260,12 +272,15 @@
#idx-filter{width: unset;}
#idx-path{vertical-align: text-top;}
#idx-json{display: none;}
#idx-arrow-up { cursor: pointer; padding-top: 0.15em; margin-left: -1em; }
.header{background-color: #fff;}
.material-icons{vertical-align: middle;}
.load {position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; background: #EEE; z-index: 9999}
.lds {display: inline-block; width: 80px; height: 80px; position: fixed; left: 47.5%; top: 47.5%;}
.lds:after {content: " "; display: block; width: 64px; height: 64px; margin: 8px; border-radius: 50%; border: 6px solid #ccc; border-color: #ccc transparent; animation: lds 1.2s linear infinite;}
@keyframes lds {0% {transform: rotate(0deg);}100% {transform: rotate(360deg);}}
.up-arrow { align-items: center; background: green; height: 100%; }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Revise o estilo da classe .up-arrow

O estilo atual para .up-arrow pode causar problemas de layout e consistência visual.

Considere as seguintes alterações:

  1. Remova a altura fixa de 100% para evitar possíveis problemas de layout.
  2. Utilize uma variável CSS para a cor de fundo, permitindo maior flexibilidade e consistência com o tema geral.

Exemplo:

.up-arrow {
  align-items: center;
  background: var(--primary-color, green);
  padding: 5px;
  border-radius: 50%;
}

Isso tornará o estilo mais flexível e consistente com o design geral da aplicação.

.material-icons { user-select: none; }
</style>
<link id="idx-theme" rel="stylesheet" href="" crossorigin="anonymous">
</head>
Expand All @@ -278,6 +293,7 @@
<li>
<span class="material-icons" style="font-size: 36px;">drive_file_move</span>
<span id="idx-path"></span>
<span class="material-icons" id="idx-arrow-up" onclick="goUp()">arrow_upward</span>
</li>
<li></li>
<li></li>
Expand Down