Skip to content

Commit

Permalink
fix: Fixing some modal non prompting
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Nov 25, 2022
1 parent 9cde6ff commit 7481fa7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/fibr/static/styles/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions cmd/fibr/static/styles/share.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#share-form:target {
.share-form-modal:target {
display: flex;
z-index: 5;
}

#share-form:target ~ .content {
.share-form-modal:target ~ .content {
pointer-events: none;
}


#share-list:target {
.share-list-modal:target {
display: flex;
z-index: 5;
}

#share-list:target ~ .content {
.share-list-modal:target ~ .content {
pointer-events: none;
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/fibr/templates/folder-modal.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ define "folder-modal" }}
<div id="folder-modal" class="modal">
<div id="folder-modal" class="modal folder-modal">
<div class="modal-content">
<h2 class="header">Create new folder</h2>

Expand Down
4 changes: 2 additions & 2 deletions cmd/fibr/templates/share-form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ define "share-directory" }}
<div id="share-form" class="modal share-form">
<div id="share-form" class="modal share-form-modal">
<div class="modal-content">
<h2 class="header">Share this directory</h2>

Expand All @@ -11,7 +11,7 @@ <h2 class="header">Share this directory</h2>
{{ end }}

{{ define "share-file" }}
<div id="share-form-{{ .ID }}" class="modal">
<div id="share-form-{{ .ID }}" class="modal share-form-modal">
<div class="modal-content">
<h2 class="header">Share {{ .Name }}</h2>

Expand Down
2 changes: 1 addition & 1 deletion cmd/fibr/templates/share-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ define "share-list" }}
<div id="share-list" class="modal">
<div id="share-list" class="share-list-modal modal">
<div class="modal-content">
<h2 class="flex flex-center header no-margin">
<span>Shared folders</span>
Expand Down

0 comments on commit 7481fa7

Please sign in to comment.