ospfranco / sol

MacOS launcher & command palette
MIT License
1.94k stars 91 forks source link

Show the General Widget only when necessary #19

Closed Angelk90 closed 2 years ago

Angelk90 commented 2 years ago

Hi @ospfranco , why not show the General Widget only when necessary?

For example like this:

{(store.ui.track?.title !== null || !!store.ui.currentlyTrackedProject || !!store.ui.currentTemp) && (
          <GeneralWidget
          style={tw`border-t w-full bg-white dark:bg-black bg-opacity-80 dark:bg-opacity-70 border-lightBorder dark:border-darkBorder`}
        />
)}

Same thing for the CalendarWidget too, if there are no events it would be correct not to show it.

{(store.ui.events.length > 0) && (
      <CalendarWidget
        style={tw`border-t w-full bg-white dark:bg-black bg-opacity-70 dark:bg-opacity-60 border-lightBorder dark:border-darkBorder`}
      />
)}
ospfranco commented 2 years ago

product design decision I have not made yet