mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-21 12:59:52 -06:00
Improve recent apps display and style in TabHome
This commit is contained in:
@@ -29,6 +29,14 @@ function buildRecentAppsHTML () {
|
||||
|
||||
if ( window.launch_apps?.recent?.length > 0 ) {
|
||||
h += '<div class="bento-recent-apps-grid">';
|
||||
// if name === title === uuid, then app title will be the hostname of index_url
|
||||
// otherwise, use the title
|
||||
for ( const app_info of window.launch_apps.recent ) {
|
||||
if ( app_info.name === app_info.title === app_info.uuid && app_info.index_url ) {
|
||||
app_info.title = new URL(app_info.index_url).hostname;
|
||||
}
|
||||
}
|
||||
|
||||
// Show up to 6 recent apps
|
||||
const recentApps = window.launch_apps.recent.slice(0, 6);
|
||||
for ( const app_info of recentApps ) {
|
||||
|
||||
@@ -5917,6 +5917,7 @@ fieldset[name=number-code] {
|
||||
transition: all 0.15s ease;
|
||||
background: #f8f9fa;
|
||||
border: 1px solid transparent;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.bento-recent-app:hover {
|
||||
|
||||
Reference in New Issue
Block a user