Skip to content

Commit 8de1e92

Browse files
authored
Merge pull request #82 from opcodesio/bug/missing-transform-origin-for-dropdown
bring back transform origins to dropdowns, including those dropping up
2 parents 3a23ee9 + ec98320 commit 8de1e92

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

public/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/css/app.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,12 @@ html.dark {
358358
.dropdown {
359359
@apply absolute top-full z-40 right-1 -mt-1 overflow-hidden text-gray-900 dark:text-gray-200 rounded-md bg-white border-gray-200 dark:bg-gray-800 border dark:border-gray-700 shadow-md;
360360

361+
transform-origin: top right !important;
362+
363+
&.up {
364+
transform-origin: bottom right !important;
365+
}
366+
361367
&.up {
362368
@apply top-auto bottom-full mt-0 -mb-1;
363369
}

resources/views/livewire/file-list.blade.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@
4040
<div
4141
x-ref="panel"
4242
x-show="open"
43-
x-transition
43+
x-transition:enter="transition ease-out duration-100"
44+
x-transition:enter-start="opacity-0 scale-90"
45+
x-transition:enter-end="opacity-100 scale-100"
46+
x-transition:leave="transition ease-in duration-100"
47+
x-transition:leave-start="opacity-100 scale-100"
48+
x-transition:leave-end="opacity-0 scale-90"
4449
x-on:click.outside="close($refs.button)"
4550
:id="$id('dropdown-button')"
46-
style="display: none;"
4751
class="dropdown w-48"
4852
:class="direction"
4953
>

resources/views/partials/site-settings-dropdown.blade.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ class="relative"
2424
<div
2525
x-ref="panel"
2626
x-show="open"
27-
x-transition.origin.top.right
27+
x-transition:enter="transition ease-out duration-100"
28+
x-transition:enter-start="opacity-0 scale-90"
29+
x-transition:enter-end="opacity-100 scale-100"
30+
x-transition:leave="transition ease-in duration-100"
31+
x-transition:leave-start="opacity-100 scale-100"
32+
x-transition:leave-end="opacity-0 scale-90"
2833
x-on:click.outside="close($refs.button)"
2934
:id="$id('dropdown-button')"
30-
style="min-width: 230px; display: none;"
35+
style="min-width: 230px;"
3136
class="dropdown"
3237
>
3338
<div class="py-2">
3439
<div class="label">Settings</div>
35-
{{-- <button wire:click="toggleAutomaticRefresh">--}}
36-
{{-- <x-log-viewer::checkmark :checked="$refreshAutomatically" />--}}
37-
{{-- <span class="ml-3">Refresh every 2 seconds</span>--}}
38-
{{-- </button>--}}
3940

4041
<button wire:click="toggleShorterStackTraces">
4142
<x-log-viewer::checkmark :checked="$shorterStackTraces" />

0 commit comments

Comments
 (0)