Skip to content

Commit

Permalink
Ensure that ripple matches notification size (#6360)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Feb 18, 2024
1 parent 5afbe2b commit c798697
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions panel/dist/css/notifications.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.notyf__ripple {
height: calc(100% * 2.75);
}
6 changes: 4 additions & 2 deletions panel/io/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ..reactive import ReactiveHTML
from ..util import classproperty
from .datamodel import _DATA_MODELS, construct_data_model
from .resources import CSS_URLS, bundled_files
from .resources import CSS_URLS, bundled_files, get_dist_path
from .state import state

if TYPE_CHECKING:
Expand Down Expand Up @@ -176,7 +176,9 @@ def __js_skip__(cls):

@classproperty
def __css__(cls):
return bundled_files(cls, 'css')
return bundled_files(cls, 'css') + [
f"{get_dist_path()}css/notifications.css"
]

_template = ""

Expand Down

0 comments on commit c798697

Please sign in to comment.